title: Script laggy to load on older iOS devices only
body: <p>Script takes a few seconds to load on older iOS devices. I tested on my iPhone 7 and works fine.</p>
  
  <pre><code>   $(document).scroll(function () {
     var y = $(this).scrollTop();
  
     if (y &gt; 300) {
          $('#bottombadge').fadeIn; 
     } 
  
     else {
          /* (y &lt;= 300) */
          $('#bottombadge').fadeOut();
     }     
  
  });
  </code></pre>
  
  
  
  <p>It's mainly the fadeIn that is super slow. Any ideas please? Thank you</p>