rafaelmaeuer
2/16/2017 - 11:12 AM

Refresh a web page on orientation change - From http://stackoverflow.com/questions/7919172/what-is-the-best-method-of-re-rendering-a-web-pag

  window.addEventListener('orientationchange', function () {
    var originalBodyStyle = getComputedStyle(document.body).getPropertyValue('display');
    document.body.style.display='none';
    setTimeout(function () {
      document.body.style.display = originalBodyStyle;
    }, 10);
  });