5 Things You Should Stop Doing With jQuery
flippinawesome.org
5 Things You Should Stop Doing With jQuery
1–6 of 6 posts
Re: 5 Things You Should Stop Doing With jQuery
#2Re: 5 Things You Should Stop Doing With jQuery
#3Re: 5 Things You Should Stop Doing With jQuery
#4Re: 5 Things You Should Stop Doing With jQuery
#5And not all javascript goes at the bottom, only deferable javascript belongs there. The problem caused by scripts is that they block parallel downloads. To prevent that we put as many at the bottom as is possible. But some still belong at the top if they're non-deferable; in otherwords if they should load before the dom (e.g. modernizr).
As an added fun fact: In every scenario all external CSS should load before all javascript because CSS doesn't block parallel downloads. And page display should be top priority in the load order.
Re: 5 Things You Should Stop Doing With jQuery
#6Edit: I just read the bit about how grep was better than your .map usage. I still think filter is better than grep in a lot of cases, esp. when you are trying to chain methods when working with an array of (jQuery) elements