Call window resize event only when finished