jack prelusky
jack prelusky

Reputation: 263

How to use the head tag efficiently?

which is best order to including css link and script tag in HTML and why ? How to use the head tag efficiently ?

Upvotes: 0

Views: 48

Answers (1)

Braders
Braders

Reputation: 445

The document wont start to render(display on screen), until all resources in the head have loaded. Therefore, JavaScript files should be moved to the bottom of the page, unless it is necessary for them to run as soon as the page loads. Css should go in the head, and preferably be in just one file, as opposed to many files

Upvotes: 1

Related Questions