Skip to main content

Bug Tracker

Side navigation

#4683 closed bug (worksforme)

Opened May 21, 2009 01:21PM UTC

Closed October 20, 2010 01:35AM UTC

Last modified March 29, 2011 01:24PM UTC

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 May 21, 2009 01:28PM UTC.
Change History (2)

Changed October 20, 2010 01:35AM UTC by addyosmani comment:1

resolution: → worksforme
status: newclosed

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

Changed March 29, 2011 01:24PM UTC by comment:2

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)