force all assets to be ready before page load