Skip to content

24 ways to impress your friends

Vote up?

Jesse Skinner

To have different stylesheets for people with and without JavaScript, I like to use a single link tag pointing to a CSS file, then dynamically change the href to point at the JavaScript-only CSS file that simply imports the original CSS file and adds a few extra things.

To see a longer explanation with an example, check out No-JavaScript CSS