jquery - Use some CSS only if user has JavaScript enabled -


in order webpage degrade gracefully, have css should loaded if corresponding javascript function.

what simplest way load local css if , if browser has javascript enabled?

also it's quite big block of css, i'd rather not have write javascript line add each attribute. (oh, , if necessary can use jquery).

set class on body tag of "nojs". use javascript remove class.

for css rules want used when no js present, use .nojs .myrules {}


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -