Switched to window.load to avoid FOUC