title: Load Javascript when div is in viewport
body: <p>Thats the Div in HTML file</p>
  <pre><code>&lt;div class=&quot;inViewport&quot;&gt;
  </code></pre>
  <p>And this script should be loading only when the div is in viewport</p>
  <pre><code>    &lt;script type=&quot;text/javascript&quot;&gt;
          document.addEventListener('DOMContentLoaded', function () {
              ToxProgress.create();
              ToxProgress.animate();
          });
      &lt;/script&gt;
  </code></pre>