Set window size while loading.