D
D
DoubleWish2017-12-07 00:44:46
css
DoubleWish, 2017-12-07 00:44:46

How to fix friezes when scrolling?

Hello! How do you fix bugs when scrolling the page? I can’t determine where the performance sags and how to fix it at all? I use everything I can’t find (brake + will-change + pointer-events + vanilla), but there are still subsidences. Slows down almost always at the time of js execution. Or, for example, when using the waypoint library.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Litvinenko, 2017-12-07
@ZeroPT

Are you using requestanimationframe? friezes can be from the fact that the jsa event loop is not synchronized with the page rendering event by the browser itself.
Maybe you also change styles very often? this is also wrong, the DOM tree is very slow and the styles are also in it, try setting the style with animation, then the rendering goes to the browser and change the end point of the animation depending on the user's actions.

D
duck_nukem, 2017-12-07
@duck_nukem

-webkit-overflow-scrolling: touch;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question