er&quot;&gt;
              &lt;div class=&quot;loader&quot;&gt;Loading...&lt;/div&gt;
          &lt;/div&gt;

          &lt;div id=&quot;main&quot; class=&quot;loaded-container&quot;&gt;
              &lt;h1&gt;Content is loaded!&lt;/h1&gt;
          &lt;/div&gt;
      &lt;/div&gt;

      &lt;script&gt;
          setTimeout(function() {
              document.getElementById('loader').style.display = 'none'
              document.getElementById('main').style.display = 'block'
          }, 5000)
      &lt;/sc