Squeeze CSS and JS into one file
Written by on May 2nd, 2007 in Ajax News.
If you wanted a hack to allow you to put JavaScript and CSS into the same file you got it:
HTML:
-
-
<!– /*
-
function t(){}
-
<!– */
-
<!– body { background-color: Aqua; }
-
You could of course just use JavaScript and add CSS programatically, but then you need to deal with browser quirks, and JavaScript has to be on and such.
I would love to see any stats on why you would want to do this
Source: Ajaxian
Original Article: http://ajaxian.com/archives/squeeze-css-and-js-into-one-file