×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Load JavaScript Asynchronously on a Web Page
 

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

Friday May 4th 2018 by Srinath M S

Language: Web, Expertise: Intermediate - Learn how to easily load JavaScript asynchronously to improve page performance.

By default, JavaScript script files are loaded synchronously in the page execution and thus are bound to slow down the page.

You can asynchronously load the scripts by simply adding the "async" attribute on the script tag. The script will be executed asynchronously while the rest of the HTML page is being parsed.

For example:

<script src="longloadingscript.js" async></script>
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved