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