3 ms·
Something in the runtime JS is really slowing down the page. Here's a demo video with scrolling after the page has loaded (really choppy) and scrolling after s
by alin23 2y ago
Something in the runtime JS is really slowing down the page.
Here's a demo video with scrolling after the page has loaded (really choppy) and scrolling after stopping the JS with Firefox's slow-script-detection-thingy (smooth): https://files.alinpanaitiu.com/joshwcomeau-slow-scroll_2.mp4 https://files.alinpanaitiu.com/joshwcomeau-slow-scroll_2.mp4
The code seems to enter a tight loop here whenever I'm scrolling: https://files.alinpanaitiu.com/joshwcomeau-debug-script.png https://files.alinpanaitiu.com/joshwcomeau-debug-script.png