css-parse Questions - SnippetGood most recent 30 from http://snippetgood.com 2010-07-29T23:57:37Z http://snippetgood.com/feeds/tag/css-parse http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://snippetgood.com/questions/111/css-inline-embedded-external-or-external-parse CSS: inline, embedded, external or external parse Gwyneth 2009-10-19T16:21:35Z 2010-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>&lt;div style="float: left;" class="left"&gt;hi&lt;/div&gt; </code></pre> <p>embedded:</p> <pre><code>&lt;head&gt; .left { float: left } &lt;/head&gt; &lt;body&gt; &lt;div class="left"&gt;hi&lt;/div&gt; &lt;/body&gt; </code></pre> <p>external:</p> <pre><code> &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="style.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="left"&gt;hi&lt;/div&gt; &lt;/body&gt; </code></pre> <p>parsing:</p> <pre><code> ???? </code></pre>