css-parse Questions - SnippetGoodmost recent 30 from http://snippetgood.com2010-07-29T23:57:37Zhttp://snippetgood.com/feeds/tag/css-parsehttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://snippetgood.com/questions/111/css-inline-embedded-external-or-external-parseCSS: inline, embedded, external or external parseGwyneth2009-10-19T16:21:35Z2010-07-21T13:22:20Z
<p>I was thinking about server load times and wondering what the most efficient way to add css is. What gets loaded fastest?</p>
<p>For my part, I think the external css is the easiest to maintain as a project scales, but sometimes you need a lot of these stylesheets for large scale websites with a lot of varying sections. What about parsing several css sheets on load?</p>
<p>as for snippets:</p>
<p>inline:</p>
<pre><code><div style="float: left;" class="left">hi</div>
</code></pre>
<p>embedded:</p>
<pre><code><head>
.left { float: left }
</head>
<body>
<div class="left">hi</div>
</body>
</code></pre>
<p>external:</p>
<pre><code> <head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="left">hi</div>
</body>
</code></pre>
<p>parsing:</p>
<pre><code> ????
</code></pre>