Use Prototype.emptyFunction here
Don't do resize until the page is visible