Please take a look at the test case above. You will see that I have added 2 classes to the html (in the JS) and each time the page updates the classes are removed and re-added. This is probably a poor example because at least in the case the classes are re-added, in reality the page loads with no attributes on the html and therefore breaks the css on the page.
Test case: https://codepen.io/David-Brooks/pen/MWdgKmY
Please take a look at the test case above. You will see that I have added 2 classes to the html (in the JS) and each time the page updates the classes are removed and re-added. This is probably a poor example because at least in the case the classes are re-added, in reality the page loads with no attributes on the html and therefore breaks the css on the page.
I'll create another demo as well...