Bug Tracker

Ticket #2612 (new bug)

Opened 5 months ago

domManip is not always respecting script execution order on IE7

Reported by: jwagner Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: ajax
Version: 1.2.3 Keywords: script ajax getScript domManip
Cc: Needs: Review

Description

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.

Jerome

Attachments

jquery-1.2.3-script-exec-order.patch (2.3 kB) - added by jwagner 5 months ago.

Change History

Changed 5 months ago by jwagner

Note: See TracTickets for help on using tickets.