For whatever reason the following:
$(function() { $(window).resize(function() { alert(\"resized!\"); }); });
only fires an event wh
Try this code.
window.addEventListener("resize", function(){ console.log('yeap worked for me!'); })