Example 1: Defers
<script defer src="customMainScrpt.js" onload="myInit()"><script>
<script async src="customMainScrpt.js" onload="myInit()"><script>
Parse js/css as a PHP file using htaccess
<FilesMatch "\.(js)$"> AddHandler application/x-httpd-php .js </FilesMatch>
Difference between async and defer
The difference between async and defer centers around when the script is executed.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.