This event will fire several times in different browsers (some after resizing, others during).
One way around this is to wait a while (say, half a second) after the fire occurs to find out if there are any additional updates. If not, you can continue the warning.
eg.
var resizeTimer;
window.onresize = function(){
if (resizeTimer){
clearTimeout(resizeTimer);
}
resizeTimer = setTimeout(function(){
alert(1);
}, 500);
};
, .