Wait for window.load to finish before running setViewPortHeight()