What does the defer attribute of the SCRIPT tag do?

Troy Niven

A quote from the W3C HTML 4.01 recommendation:

"defer [CI] When set, this boolean attribute provides a hint to the user agent that the script is not going to generate any document content (e.g., no "document.write" in JavaScript) and thus, the user agent can continue parsing and rendering."

To use it, add it as an attribute of the tag:

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.