My Current HTML Boilerplate
I've never thought to do something like this as a way to detect whether or not js is being used.    

    ...

    
      document.documentElement.classList.remove('no-js');
      document.documentElement.classList.add('js');
    

It's so simple but so effective. Will be copying that.