devxlogo

Load JavaScripts at the End of the Page Load Process

Load JavaScripts at the End of the Page Load Process

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

devx-admin

Share the Post: