Skip to content

Commit

Permalink
Added readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
awayken committed Jun 30, 2012
1 parent 33e21a0 commit 4bcbfb5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CSS Inliner

As we learn more and more about how to increase the speed of our pages, front-end developers are asked to jump through more and more hoops. The article, [Why Inlining Everything Is NOT The Answer](http://calendar.perfplanet.com/2011/why-inlining-everything-is-not-the-answer/), recommends the rule that files above 4KB should be linked and not inlined. Don't want to deal with that yourself? This project helps.

Small files are output as inline CSS. Big files are output as `<link>` tags.

``` coldfusion
<cfscript>
cssinliner.showCSS('css/small.css');
cssinliner.showCSS('css/big.css');
cssinliner.showCSS([
'css/small.css',
'css/big.css'
]);
</cfscript>
```

0 comments on commit 4bcbfb5

Please sign in to comment.