title: Scroll Behavior Broken
body: <p>So earlier I wrote a small snippet of code to implement a smooth scroll on my webpage. Initially it was working fine, but as developing progressed it randomly stopped working and has not started working since. Now when it scrolls there is a delay from when you press the button and then eventually it snaps to the part of the page its targeting.</p>
  <p>Here is the script tag for the library:</p>
  <pre><code>&lt;script src=&quot;https://cdn.jsdelivr.net/gh/cferdinandi/smooth-scroll@15.0.0/dist/smooth-scroll.polyfills.min.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>And here is the javascript:</p>
  <pre><code>const scroll = new SmoothScroll('nav a[href*=&quot;#&quot;]',{
      speed: 800
  });
  </code></pre>
  <p>I do not want to use the CSS <code>scroll-behavior: smooth</code> because most of my sites traffic will be on Safari which doesn't support that.</p>