Comment Comment by tsujp I've never thought to do something like this as a way to detect whether or not js is being used. <html lang="en" class="no-js"> ... <script type="module"> document.documentElement.classList.remove('no-js'); document.documentElement.classList.add('js'); </script> It's so simple but so effective. Will be copying that. parent tsujp 5 years ago