asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > DEFER Attribute

defer Attribute


Sets or retrieves whether the script contains an inline executable function.

Applies To: SCRIPT

Syntax

Inline <script DEFER ... >
Script script.defer = bDefer ]

Possible Values

false Execution is not deferred.
true Execution is deferred.

This property returns or accepts only a boolean value, meaning true if set, and false if not. The property is read/write with a default value of false.

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.

Applies To

SCRIPT


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note