Prevent window load/resize conflicts; add event cross-browser friendly