eighteen73 / pulsar

WordPress starter theme with opinionated configuration.
MIT License
10 stars 0 forks source link

no-js <html> class #5

Closed arrubakook closed 2 years ago

arrubakook commented 2 years ago

Currently the no-js class on the <html> element does not get updated when JavaScript has been initialised on the page.

This is useful in some scenarios such as modifying form elements & fallbacks for interactive elements.

Resolved with something like?

document.documentElement.className = document.documentElement.className.replace('no-js', 'js')