js listen to element resize code example
Example: how to check if window size of browser s changed javascript
$(window).resize(function() {
console.log('window was resized');
});
$(window).resize(function() {
console.log('window was resized');
});