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
Post a Comment