I have a style element that is loaded from an external resource, and I want to apply it's styles without putting it inline.
For instance <link rel="stylesheet" type="text/css" href="my.css" /> will load a css file and apply it's rules without putting it inline and <script src="zepto.js"></script> will do the same for javascript.
If you load an external bit of js, you can evaluate it using eval() even though that's frowned upon.
But when one loads an external bit of styling, I don't know how to evaluate it except to add it to the dom.
So is there a similar function for styles as eval is to scripts? Does anyone know a good hack to get the same effect?
Anything is fine as long as the styling applies without it showing up in the dom.