Home › Forums › CSS › Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery… › Re: Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery…
May 17, 2013 at 5:27 am
#135402
CrocoDillon
Participant
If you only need the `no-js` to `js` class on html, this will do:
(function(h){h.className=h.className.replace(/bno-jsb/,’js’)})(document.documentElement);
if the CMS allows embedded scripts.