DEFER Attribute | defer Property Home
DEFER Attribute | defer Property

Sets or retrieves the status of the script.

Syntax

HTML<ELEMENT DEFER ... >
Scripting[ bDefer = ] object.defer

Possible Values

bDeferBoolean that specifies or receives one of the following values.
false
Default. Inline executable function is not deferred.
true
Inline executable function is deferred.

The property is read/write. The property has a default value of false.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

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

Standards Information

This property is defined in HTML 4.0 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

SCRIPT, HTMLScriptElement Constructor
Community Content

XML deferred = ignored
Added by:yecril

A deferred script of type XML never loads (and it is useless).

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View