Skip to content

Comment on Sprockets: JavaScript dependency management and concatenation (SvN)parent

Comments

My rule of thumb with javascript is to put everything that is critical to page functionality right at the top and everything else as far to the bottom as I can (just before </body>), that way all your buttons/sliders and other active components will work as soon as the page is rendered and any other javascript will never hurt performance.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.