Does this make everything visible? A comment would be nice here. And note that you're overloading the term "loaded".  This is unrelated to window.onload, so maybe use dataset.ready or rendered or something instead?