Created attachment 38682 [details] bug example When I Insert on fly JS. Execution sequence are incorrect. In all browsers first pop's "event 1", last "event 2". On browser's based on WebKit (Google Crome & Safari) first pop's "event 2", last "event 1". This can broke logic of JavaScript program. Please see attached example on different browser's.
Created attachment 38817 [details] reduced test case Further reduced test case.
Reduced test case don't work because no https://bug-28783-attachments.webkit.org/evt.js file.
Created attachment 38819 [details] reduced test case Sorry, it still needs two files - uploading an archive.
<rdar://problem/7183664>
*** Bug 33018 has been marked as a duplicate of this bug. ***
Bug 28328 could be a duplicate, too.
This may be useful for testing. http://dyn-script-load.appspot.com/
This is a not a bug per HTML5.
(In reply to comment #8) > This is a not a bug per HTML5. Agreed. See http://dev.w3.org/html5/spec/Overview.html#set-of-scripts-that-will-execute-as-soon-as-possible This bug should be marked as invalid.