JS Reload Page 1024 Breakpoint

var ww = window.innerWidth, limit = 1025;
var refresh = function() {
  ww = window.innerWidth;
  var w = ww < limit ? (location.reload(true)) :  ( ww > limit ? (location.reload(true)) : ww=limit );
}
var tOut;
window.onresize = function() {
  var resW = window.innerWidth;
  clearTimeout(tOut);
  if ( (ww > limit && resW < limit) || (ww < limit && resW > limit) ) {
    tOut = setTimeout(refresh, 100);
  }
};
Lovely Lemur