@@ -51,14 +51,15 @@ been adopted in the production-ready [little-loader][little-loader] module.
51
51
Yes, calling ` onload ` * immediately* (aka synchronously or atomically) after a
52
52
` <script> ` has executed is the correct and officially defined behavior. So
53
53
what’s the problem? ** Internet Explorer.** Below version 10, getting this
54
- behavior requires you jump through some hoops. ** Even if you don’t support
55
- Internet Explorer, your script loader may be breaking your code in compliant
56
- browsers due to its faulty ` onload ` workarounds.** Some script loaders just
57
- don’t try; for example, [ jQuery’s ` getScript ` ] [ jquery ] does not make this
58
- guarantee, documenting that “The callback is fired once the script has been
59
- loaded but not necessarily executed.” Those that do try often try * very hard*
60
- and end up being too clever and still incorrect. In giving IE a pass on this
61
- behavior, many loaders have left other browsers broken as well.
54
+ behavior requires you jump through some hoops. ** [ Even if you don’t support
55
+ Internet Explorer] ( #i-dont-support-old-ie-anyway-am-i-safe ) , your script
56
+ loader may be breaking your code in compliant browsers due to its faulty
57
+ ` onload ` workarounds.** Some script loaders just don’t try; for example,
58
+ [ jQuery’s ` getScript ` ] [ jquery ] does not make this guarantee, documenting that
59
+ “The callback is fired once the script has been loaded but not necessarily
60
+ executed.” Those that do try often try * very hard* and end up being too clever
61
+ and still incorrect. In giving IE a pass on this behavior, many loaders have
62
+ left other browsers broken as well.
62
63
63
64
If you haven’t designed for it by bundling all your code or using a system
64
65
like AMD, having other code run in between your script and its ` onload `
0 commit comments