Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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…

#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.