Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

How to make DOM not to wait till javascript is downloaded and just open the page?

That's easy. Just add async attribute to the script tag. DOM will be ready before Javascript is downloaded, so the visitor will see contents of the page faster. It's always better, when your JavaScript is only used for user's interaction.