Submitted by: Srinath M S(srinath_ms@yahoo.com)

Tuesday Oct 30th 2018 by Srinath M S
Article Image

Language: Web, Expertise: Intermediate - Learn an easy way to ensure that scripts will be executed after the page has loaded.

If you want the scripts to load at the end of the page load process, just add the "defer" keyword to the script tag.

Such scripts will be executed when the page has completed loading and the browser has finished parsing. For example:

script src="canloadlaterScript.js" defer
Mobile Site | Full Site