getting the page to fully load with proper stylesheets and javascripts