Quantcast
Channel: Stories by Uday Hiwarale on Medium
Viewing all articles
Browse latest Browse all 145

In any case, wrap your JavaScript code inside ‘DOMContentLoaded’ event.

$
0
0

In any case, wrap your JavaScript code inside ‘DOMContentLoaded’ event. This way, your code will execute when DOM is fully parsed which happens when all external scripts are loaded and executed.

Look for the documentation of ‘DOMContentLoaded’ on the web. It should be documented on MDN.


Viewing all articles
Browse latest Browse all 145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>