$(window).resize(function() {
location.reload(); }
});
When I'm developing, I want to switch to fit the screen size (responsive), but
If you do it intentionally with a script, the reload will start every time you scroll on a smartphone.
$(window).resize(function() {
if ($(window).width() ! == currentWidth) {
currentWidth = $(window).width();
xxxxxxxx; }
}
});
Fixing width didn't work, so it's really a trap!