How to refresh the page once when after resized window to less than 767px ?
I tried many examples, but it does not working well.
$(document).ready(function(){
if ($(window).width() < 767) {
location.reload(); // refresh page
}
else {
// width more than 768px for PC
}
});
Please help~