3 ms·
scripts in <head> tag works perfectly as well as long as you position scripts above elements you would put in the <body> . I will start doing this! demo: http:
by reimertz 10y ago
scripts in <head> tag works perfectly as well as long as you position scripts above elements you would put in the <body> . I will start doing this!
demo: http://jsbin.com/duqonahiyi/1/edit?html,console,output http://jsbin.com/duqonahiyi/1/edit?html,console,output
- nchelluri 10y agoYes, but some places tell you not to do scripts there when possible and load them instead at the bottom of the page because the page loading pauses while the script is downloaded (if not inline) and executed. See https://developers.google.com/speed/docs/insights/BlockingJS https://developers.google.com/speed/docs/insights/BlockingJS