I am working on a website at the moment where I do not have access to edit the page template. Within this template, the following jQuery is used to refresh the page when resized:
var lastWindowWidth = $(window).width();
$(window).resize(function () {
setTimeout(function () {
if ($(window).width() !== lastWindowWidth) {
window.location.href = window.location.href;
}
}, 200);
});
Is there any way I can turn this off or overwrite using JavaScript or jQuery?