<story><title>Stop Paying Your jQuery Tax</title><url>http://samsaffron.com/archive/2012/02/17/stop-paying-your-jquery-tax</url></story><parent_chain></parent_chain><comment><author>alecco</author><text>Please go check out StackOverflow&apos;s source code before bandwagoning on this topic.&lt;p&gt;This is shifting blame to the tools. The problem lies on StackOverflow&apos;s lacking design and not in jQuery.&lt;p&gt;Pushing jQuery to the bottom of the page is trivial if you do proper HTML architecture. Pages should have only HTML. JS files only JS. JS files referenced at the very bottom of the body. Very simple. (if your asp/c#/* framework doesn&apos;t make it easy, blame the framework and not jQuery)&lt;p&gt;Inlining JS and even having JS code in the title attributes is ridiculous. Fix your HTML and only then you get the right to say anything. Another telling gem is StackOverflow page doesn&apos;t even have a proper encoding declaration.&lt;p&gt;You don&apos;t need to use jQuery for everything. This is very typical of developers coming from backend who don&apos;t take web development seriously. Use CSS as much as possible.&lt;p&gt;Another misplaced attack is refresh, with proper cache headers it should not take that long. If some browsers are slow and don&apos;t keep a pre-parsed cache, blame the browser vendor and not jQuery.&lt;p&gt;jQuery taking 80ms on mobiles is quite OK. If you really care about mobile make a page optimized for mobile and minimize JS rendering and styling.&lt;p&gt;I absolutely love StackOverflow and it&apos;s one of the best things to happen to programmers in the last few years. But this self-righteousness attack on a very important tool is very misleading and ungrateful.&lt;p&gt;Edit: the proposed &quot;solution&quot; of catching $.ready and later calling those is insane.</text></comment>
<story><title>Stop Paying Your jQuery Tax</title><url>http://samsaffron.com/archive/2012/02/17/stop-paying-your-jquery-tax</url></story><parent_chain></parent_chain><comment><author>EGreg</author><text>That is a great point!&lt;p&gt;An interesting question is, why not just put ALL scripts at the end of the &amp;#60;body&amp;#62; tag, after the HTML of the page has loaded and the CSS probably did as well?&lt;p&gt;The only thing I can think of is if you have code ON the page which uses these scripts. But why not just put that code at the end of the page, too?</text></comment>