4 ms·
Nah, have a small inline script that records events and replays them to your full script when it loads. Or, if something only works with js, don't show it unti
by jaffathecake 14y ago
Nah, have a small inline script that records events and replays them to your full script when it loads.
Or, if something only works with js, don't show it until the scripts have loaded, but let plain content load & render in the meantime.
- padolsey 14y agoYeh, both viable solutions. Tbh, I can't think of any other reason to have JS in the HEAD.
- SquareWheel 14y agoGoogle 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.