OOIION-1566: initialize window resize event only once