How does one preload a stylesheet. The stylesheet will not be used immediately but I would like to preload it. (A bit like preloading an image used by a rollover).
Printable View
How does one preload a stylesheet. The stylesheet will not be used immediately but I would like to preload it. (A bit like preloading an image used by a rollover).
What is the purpose of doing that?
So it is cached.
I have thought about it myself, because i am doing a jQuery switch between stylesheets based on screensize.. But if the stylesheet hasn't been chaced before the changing, it may lack and be slow loading the new stylesheet.