jQuery .onload Function to Remove Scrollbar Until Page Load Not Working
<p>I want a jQuery function that removes the vertical scrollbar until the page has fully loaded but it doesn't seem to be working. Any insight on the problem would be great. Thanks!</p>

<pre><code>$(window).on('load', function () {    
    $('body').addClass('stop-scrolling');   
    $('body').removeClass('stop-scrolling');
});
</code></pre>

<pre class="lang-css prettyprint-override"><code>.stop-scrolling {
  height: 100%;
  overflow: hidden;
}
</code></pre>