CodeCanyon

Enable a CSS stylesheet when Javascript disabled/enabled

1461 posts
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
  • Microlancer Beta Tester
PixelBin says

I’m looking for a way to use a certain stylesheet only when Javascript is either disabled or enabled (it doesn’t matter which; I just need a way to differentiate them).

I know there’s an alternative by just writing the CSS styles in the HTML page with Javascript, but that’s messy and slows down the loading.

Thanks.

122 posts
  • Bought between 50 and 99 items
  • Denmark
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Sold between 1 000 and 5 000 dollars
jayjdk says
1461 posts
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 4-5 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
  • Microlancer Beta Tester
PixelBin says

Hmm… I haven’t thought of that. I knew about it, but I was hoping there was a way for Javascript-enabled.

This will work though. Thanks for the reminder. :)

by
by
by
by
by