12 September, 2013
0 Comments
1 category
Interesting podcast by Scott Hanselman and Nicholas Zakas:
http://hanselminutes.com/383/enough-with-the-javascript-already-with-nicholas-zakas
It mentions the 4 JavaScript load opportunities:
- In the <head> tag
- Before the </body> tag
- After page load (windows.onload DOM ready function)
- On demand (when user clicks a button, mouse is 100px from button, user types first letter etc.)
For performance reasons, use 4, then 3, then 2 and if you can’t do without, use 1.
Tags: Javascript
Category: Uncategorized