will now load scripts before all the images (looks smoother)