JavaScript window resize event
How can I hook into a browser window resize event? There’s a jQuery way of listening for resize events but I would prefer not to bring it into my project for just this one requirement. 13 s 13 Best practice is to attach to the resize event. window.addEventListener(‘resize’, function(event) { … }, true); jQuery is … Read more