Jump to content
Search Community

Jumpy scroll

NorbertN test
Moderator Tag

Recommended Posts

Hi,

About 2 months ago I built a website that massively relies on gsap. About 3 day ago client told me that website started lagging while scrolling. May I ask if there was any update to script I load from cdn? For last 2 months nothing has been done on the website. I get this lagging on live site and my local copy of the site.

Scripts I load:

<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/ScrollToPlugin.min.js"></script>

Website urls where this can be seen:

https://www.aomrc.org.uk/annual-review-2020/

The lag/small jumps appear when you scroll a bit and scene slows down before it stops.

 

I'd appreciate some help.

Kind regards

Norbert

Link to comment
Share on other sites

First of all, nice job on the site! Looks beautiful. 

 

There absolutely was NOT any change to GSAP on the CDN or anything like that. We'd never do that, and CDNJS wouldn't allow it anyway. It's totally against their policy. I doubt your issue has anything to do with GSAP whatsoever - it's far more likely that a browser update caused the slowdowns. I've seen Chrome do this many times where they change their rendering strategies and sometimes it's horrible. For example, a Chrome update a long time ago suddenly changed de-accelerated 3D transforms on the Mac. They also altered the way text was anti-aliased, and then they messed with will-change stuff. I detailed some of it here:

 

We can't really provide a free performance audit of your whole site or anything, but maybe try to see if the issue is browser-specific and try adding will-change to things that you think might be difficult on the browser to render. The whole will-change thing has gotten better since I wrote that article. 

 

But again, I can assure you that there wasn't an update to GSAP that'd suddenly make your site perform worse. And we'll never change out the CDN files on you like that. The whole point of the CDN is that it's locked in forever - when you link to that versioned file, it's persistent. 

  • Like 4
Link to comment
Share on other sites

Thanks for your reply, I'll take a look at your resources. This change in the cdn was on top of my head as I haven't changed anything on the server or in the site code. The sources I listed are the only one that I have no control on. I'll run tests and check latest browsers update change logs. I'll share here my findings for the future.

Worrying bit is that it lags in 3 mayor browsers and I'm sure it was smooth 2 months ago.

Norbert

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...