3 ms·
Maybe, but you can make it better even without any fancy loaders, async and defer are regular attributes of the script tag – https://developer.mozilla.org/en/do
by helb 10y ago
Maybe, but you can make it better even without any fancy loaders, async and defer are regular attributes of the script tag – https://developer.mozilla.org/en/docs/Web/HTML/Element/script#Attributes https://developer.mozilla.org/en/docs/Web/HTML/Element/scrip...
- Flimm 10y ago`defer` has problems: http://stackoverflow.com/a/40535440/247696 http://stackoverflow.com/a/40535440/247696 There is no obvious easy way to wait for an `async` script to finish loading and executing before running code that depends on it. For instance, how would I load the jQuery library asynchronously before running code that depends on jQuery?