Blog

Cross Browser async Attribute

shutterstock_234378844
BLOG / Web Development

Cross Browser async Attribute

The boolean async attribute on script elements allows the external JavaScript file to run when it’s available, without delaying page load first.

Browser Support

Async attribute is already supported by all major browser so it should be really easy to get it working cross browser.

Code Example

You can use async attribute like this:

<script async src="somefile.js"></script>

More Information

More information can be found here.

Leave your thought here

Your email address will not be published. Required fields are marked *