Bug Tracker

Opened 14 years ago

Closed 12 years ago

#4633 closed bug (invalid)

globalEval execution is delayed in Firefox if another script is executing

Reported by: krogot Owned by: krogot
Priority: minor Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


<script> $.get('url', {}, function(contents) {

$.globalEval(contents); call of a function declared in "contents" fails in FF

}); </script> <script> document.write("<script src=\"delay.php?r="+Math.random()+"\"></"+"script>"); </script>

In IE/Safari/Chrome it works, in FF2/3 it fails. Looks like firefox schedules the <script> tag created by globalEval to be executed after "delay.php" finishes, so any code right after globalEval() does not work.

Change History (2)

comment:1 Changed 12 years ago by dmethvin

Owner: set to krogot
Status: newpending

Can you provide a complete test case?

comment:2 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.