Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 defer Property

  Switch on low bandwidth view
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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
XML deferred = ignored      yecril   |   Edit   |   Show History

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

Tags What's this?: defer (x) script (x) xml (x) Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker