Bug Tracker

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#4683 closed bug (worksforme)

Callback for getScript is called too early in Safari and Opera

Reported by: inez Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: getScript callback Cc:
Blocked by: Blocking:


var myCallback = function() { ... } $.getScript(myLib, myCallback);

In Safari and Opera myCallback is called too early, before myLib script is downloaded and initialized. Note that this problem may not occur if your network latency is very low or you have myLib in browser cache.

Patch is attached.

Attachments (1)

patch.txt (1.6 KB) - added by inez 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by inez

Attachment: patch.txt added

comment:1 Changed 12 years ago by addyosmani

Resolution: worksforme
Status: newclosed

This is currently working fine for me with jQuery 1.4.2 and jQuery 1.4.3.

comment:2 Changed 12 years ago by [email protected]

I guess this is an issue related to script performance. We can have fixes such as your patch or looping a timeout... But if the computer processing is slow, it is most probably that it will happen. (I mean, if you have an i7 probably won't suffer this)

Note: See TracTickets for help on using tickets.