jquery get window width on resize code example
Example 1: jquery window trigger resize
window.dispatchEvent(new Event('resize'));
Example 2: resize js
window.addEventListener('resize', function(event){
// do stuff here
});
window.dispatchEvent(new Event('resize'));
window.addEventListener('resize', function(event){
// do stuff here
});