Skip to main content

Bug Tracker

Side navigation

#7862 closed bug (fixed)

Opened December 29, 2010 05:29PM UTC

Closed April 17, 2011 06:28AM UTC

Last modified March 09, 2012 12:51PM UTC

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:
Description

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.

http://jsfiddle.net/serverherder/58te4/2/embedded/result/

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.

http://jsfiddle.net/serverherder/dTgm5/1/embedded/result/

This was suggested here:

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

Attachments (0)
Change History (4)

Changed December 29, 2010 09:21PM UTC by rwaldron comment:1

component: unfiledcore
milestone: 1.next
priority: undecidedlow

Changed December 29, 2010 09:28PM UTC by rwaldron comment:2

owner: → rwaldron
status: newassigned

Changed January 09, 2011 08:14PM UTC by jaubourg comment:3

#4545 is a duplicate of this ticket.

Changed April 17, 2011 06:28AM UTC by john comment:4

milestone: → 1.6
resolution: → fixed
status: assignedclosed

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