timing fix now that files are split - dobeforeload was getting called before document.html.classlist was available which caused some issues