I\'m using JQuery as such:
$(window).resize(function() { ... });
However, it appears that if the person manually resizes their browser wind
Declare globally delayed listener:
var resize_timeout;
$(window).on('resize orientationchange', function(){
clearTimeout(resize_timeout);
resize_timeout = setTimeout(function(){
$(window).trigger('resized');
}, 250);
});
And below use listeners to resized event as you want:
$(window).on('resized', function(){
console.log('resized');
});