classList.js
classList.js copied to clipboard
classList.js does not work if loaded after DOMContentLoaded
I defer all of my JavaScript until after DOMContentLoaded. The classList.js polyfill is not accessible unless it is loaded at or before document.readyState === "loading". How can this be overcome?