-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |