javascript run function on innerWidth change 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');
});