All Comments
TopTalkedBooks posted at August 20, 2017
TopTalkedBooks posted at August 20, 2017

That's not entirely correct. Said simply:

  • Style declarations should be as close to the top as possible, since browsers won't render your page before loading the CSS (to avoid a flash of unstyled content)

  • Script tags should be as close to the bottom as possible, since they block browsers from parsing after the tag before it is loaded and complete (because the script may change the document with document.write)

If you're interested in frontend performance, I highly recommend reading High Performance Web Sites: Essential Knowledge for Front-End Engineers by Steve Souders.

TopTalkedBooks posted at August 20, 2017

It's definitely faster to do it all at once. Also check out Steve Souder's blog and his book.

Top Books
We collected top books from hacker news, stack overflow, Reddit, which are recommended by amazing people.