-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jquery Lag when Scrolling #10
Comments
The issue is that each time you scroll, an animation is triggered with a 200ms transition. These queue up and process one by one which is why you see the lag. You can stop any existing animations on each scroll:
|
In case, somebody still faces this issue, the only thing that can be done is to wait for a minute or so and then reload the page. Apparently this seems to be an issue for browsers when they first load the site but then after a while it fixes itself automatically |
Nvm I fixed it |
I have a header minimise when I scroll down, however I have a lag for it returning to full size upon returning back to the top of the page. Seems to be worse when I scroll further.
A Simplified code snipped-
It does not appear to get the same problem if I set the animation time to 0 which is why I'm assuming that it's the animations that are the issue.
Is there some kind of inherent lag associated with them, like it having to wait until one's finished to do the next? If so (or any other reason for it) is it possible to overcome it and still have the animations?
The text was updated successfully, but these errors were encountered: