Don't automatically attach to the window resize event.  Let the calling page decide to do this or not as appropriate.