How to order <script> tags vs. <style> tags in HTML markup for best results.
Posted
by Tchalvak
on Stack Overflow
See other posts from Stack Overflow
or by Tchalvak
Published on 2010-03-30T21:02:28Z
Indexed on
2010/03/30
21:23 UTC
Read the original article
Hit count: 429
I'm building up my site over at http://royronalds.com, and I'm trying to figure out what order of elements in the <head>
makes most sense. Just to take from what I current have, I have:
<head>
<style>
external stylesheet<meta>
<title>
<link>
to favicon<script>
for jQuery<script>
main javascript for site<script>
google analytics, asynchronous script.</head>
Are there reasons to order these differently so that load times and other issues happen more smoothly, and if so, what would the ideal order be?
© Stack Overflow or respective owner