Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 9 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:

Description

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 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by inez

Attachment: patch.txt added

comment:1 Changed 9 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 9 years ago by tomasloon@…

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.