The Script defer Property is used to set or return whether the script should be executed after the page has finished parsing. This Property is used to reflect the defer attribute of an <script> Tag.
- It Return the defer property.
- It is used to set the defer property
scriptObject.defer = true|false
Property Values: It contains the Boolean value which specify that whether a script should be executed when the page has finished parsing, or not
- true: The script is executed when the page has finished parsing
- false: The script will not be executed when the page has finished parsing.
Return Values: It returns a boolean value, returns true if the script is executed after the loading of the page is finished.
Example: This Example returns the defer Property.
Before Clicking On Button :
After Clicking On Button :
- HTML | <script> defer Attribute
- HTML | defer Attribute
- Underscore.js | _.defer()
- D3.js queue.defer() Function
- Lodash _.defer() Method
- HTML | DOM Script type Property
- HTML | DOM Script text Property
- HTML | DOM Script src Property
- HTML | DOM Script async Property
- HTML | DOM Script charset Property
- HTML | DOM Script Object
- HTML | script Tag
- HTML | <script> charset Attribute
- HTML | <script> type Attribute
- HTML | <script> src Attribute
- HTML | <script> async Attribute
- HTML | DOM lang Property
- HTML | DOM Style backgroundClip Property
- HTML | DOM Style borderTop Property
- HTML | DOM Meter max Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : arorakashish0911