Skip to content

Comment on How fast is apple.com?parent

Comments

Yeh, both viable solutions. Tbh, I can't think of any other reason to have JS in the HEAD.

Google Analytics is generally the only JS I put in the head. If some code is absolutely required for the page to work though then it may make sense to put it ahead of the content.

AboutSource Built by g1lg1l

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