wait for scripts to load before scrolling out