javascript redraw on resize code example Example: jquery force page to reload on viewport resize $(window).resize(function(){location.reload();});