Side navigation
#4633 closed bug (invalid)
Opened May 07, 2009 08:21PM UTC
Closed December 02, 2010 08:07AM UTC
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: |
Description
<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.
Can you provide a complete test case?