https://stackoverflow.com/questions/8100576/how-to-check-if-dom-is-ready-without-a-framework ------------------------------------------------------------------ How to check if DOM is ready without a framework? ------------------------------------------------------------------ The question is so like a zillion others here and on the web - How to check if DOM has loaded in Javascript? But here's the catch: Without using a framework like jQuery etc; Without knowing if your script has been loaded via a statically placed