jquery - When do you choose to load your javascript at the bottom of the page instead of the top? -


I have seen the javascript library loaded above and below the page.

I like to know when to make these choices, I have written all the javascript code at the top of the page, which includes jquery plugins.

When I load my script on any of these posts?

top : When there are javascript event functions on elements, then immediately more important (so if you Dom use Red Event

Bottom : Content is more important when loading


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -