Skip to content

Commit b8009f1

Browse files
authored
Update README.md
[ci skip]
1 parent 8c0da1c commit b8009f1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ been adopted in the production-ready [little-loader][little-loader] module.
5151
Yes, calling `onload` *immediately* (aka synchronously or atomically) after a
5252
`<script>` has executed is the correct and officially defined behavior. So
5353
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.
6263

6364
If you haven’t designed for it by bundling all your code or using a system
6465
like AMD, having other code run in between your script and its `onload`

0 commit comments

Comments
 (0)