According to W3:
Code:The SCRIPT element <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST SCRIPT charset %Charset; #IMPLIED -- char encoding of linked resource -- type %ContentType; #REQUIRED -- content type of script language -- src %URI; #IMPLIED -- URI for an external script -- defer (defer) #IMPLIED -- UA may defer execution of script -- >I'm wondering how well different browsers support the defer attribute for script tags. I've never used 'em and now I am having trouble seeing when defer can be useful... large javascript libraries perhaps?Attribute definitions:
[...]
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.
Cheers,









Bookmarks