defer

Jump to: navigation, search

defer

This article is Not Ready.



Summary

Sets or retrieves the status of the script.


Applies to  ?

Needs Examples: This section should include examples.

Notes

Remarks

Using the attribute at design time can improve the download performance of a document because the client does not need to parse and execute the script and can continue downloading and parsing the document instead.

Issues

IE<10 may interleave execution of scripts. Discussion on Github.

Combining scrips both standard and with defer that depend on each other. Discussion on Github.

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support 25+
19+
10+
Unsupported
5.1+

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support 3+
7+
?
?
?
?
?
5+


Compatibility notes

Browser Version Note
Internet Explorer < 10 Deferral order not obeyed

See also

Other articles

http://caniuse.com/#feat=script-defer

Related pages (MSDN)

  • script

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]