Skip to content

Latest commit

 

History

History
4 lines (2 loc) · 395 Bytes

7. Why is it generally a good idea to position CSS links between head and script tags.md

File metadata and controls

4 lines (2 loc) · 395 Bytes

Why is it generally a good idea to position CSS s between and JS <script>s just before ? Do you know any exceptions?

Performance reasons. You want the CSS to be available as soon as possible to correctly display the site, and scripts in the head would block rendering while they're being loaded, so you want them to be requested after the rest of the document.