See Unexpected asynchronous script execution for info about this.
When the Load content link is clicked, a fragment (the contents of
load.html) is loaded into the DOM.
foo.js - which in turn loads
bar.js by inserting a script node into the head directly - and an inline script.
The expected behaviour is that
foo.js and the inline script are loaded and executed before
jQuery.append returns and
jQuery.append has returned.
foo.js completed load.html inline script completed append returned bar.js completed
foo.js completed append returned bar.js completed load.html inline script completed