by ck2 · 15y ago · 0 comments
<script defer async src="blah"></script>
for purists <script defer="defer" async="async" src="blah"></script>The two most popular browsers support ASYNC going back to versions from September 2010, Chrome 11+ and Firefox 3.6+
- you don't have to put tons of <script> tag on your template. just pass the parameters to headjs*
- you can load js files and "after" run some function and this function hasn't have to be in another js file or document.ready(). you can do this operations any time after full page load.
* Ok, i know : one should compress and merge javascript files..