Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#7862 closed bug (fixed)

jQuery.globalEval(): Execution Delayed By Remote Scripts in Firefox

Reported by: serverherder Owned by: rwaldron
Priority: low Milestone: 1.6
Component: core Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


This page demonstrates the issue. A remote script with a 5 second delay is inserted immediately before the call to globalEval(). In firefox <=3.6, the globalEval() script will not execute until the remote script is complete.


For Firefox 3.6, a work around exists. On the globalEval()'d script element, set the async property to true and embed the script text using data-uri. While it does not trigger synchronous execution, it does circumvent any delays caused by long polling remote scripts.


This was suggested here: http://forum.jquery.com/topic/prevent-globaleval-delays-in-firefox-using-async-data-uri

Change History (4)

comment:1 Changed 6 years ago by rwaldron

  • Component changed from unfiled to core
  • Milestone 1.next deleted
  • Priority changed from undecided to low

comment:2 Changed 6 years ago by rwaldron

  • Owner set to rwaldron
  • Status changed from new to assigned

comment:3 Changed 6 years ago by jaubourg

#4545 is a duplicate of this ticket.

comment:4 Changed 6 years ago by john

  • Milestone set to 1.6
  • Resolution set to fixed
  • Status changed from assigned to closed

This is resolved in 1.6 as we're no longer using an injected script node.

Note: See TracTickets for help on using tickets.