In this test, multiple deferred scripts are loaded. The first one triggers HTML parsing on execution and defines window.foo
– think of it as a JavaScript library. The second one defines window.foo.bar
— think of it as a plugin for the library. The third one uses window.foo.bar
.
All of this seems to work fine, even in IE < 10.