Ticket #2612 (closed bug: invalid)
domManip is not always respecting script execution order on IE7
|Reported by:||jwagner||Owned by:||jwagner|
|Keywords:||script ajax getScript domManip||Cc:|
Hello, I have an application where I have several script nodes that I append on a node.
When those script elements have a relative src, jquery-1.2.4 manages to execute them synchronously and in the correct order. From what I understand, this is the expected behavior.
But when the script elements have an absolute src, IE7 does not wait for the synchronous execution of the nodes. This leads to random problems in IE7 when a function that is defined in a remote script is called in another inline script element.
Attached is a proposed patch to execute the scripts on a callback chain, using jQuery.getScript when necessary.
I hope this patch suits your coding standards and that you will also consider that the jquery-1.2.3 behavior on this point is a bug.
I can adapt it if you give me some advice because I would really like to have it incorporated in the next jquery release as it fixes a bug on my application.
- Owner set to jwagner
- Priority changed from major to low
- Status changed from new to pending
- Component changed from core to ajax
- Milestone changed from 1.2.4 to 1.4.5
- Status changed from pending to closed
- Resolution set to invalid