Move scaling to window load