title: JavaScript setTimeout not work on IE
body: <p>Preloader work 3sec, and the show the site content. But in IE and on MackBook preloader work infinitely... How can i fix that?</p>
  
  <pre><code>&lt;div id="page-preloader"&gt;&lt;span class="spinner"&gt;&lt;/span&gt;&lt;/div&gt;
  
  &lt;script&gt;
  var waiting = new Promise(function (resolve) {
      setTimeout(resolve, 3000);
  });
  waiting.then(function () {
          var $preloader = $('#page-preloader'),
              $spinner = $preloader.find('.spinner');
          $spinner.fadeOut();
          $preloader.delay(350).fadeOut('slow');
      });
  
        &lt;/script&gt;
  </code></pre>