Faced a problem. What makes javascript work smoothly and fps itself in browsers? Advise topics for the study of this issue. There is a block that is glued to TOP by javascript, not position: fixed, and when scrolling on some browsers it works smoothly, like position: fixed, and on some browses jumps are noticed.

  • 2
    I think it depends on the js engine in the browser and the number of arriving events - Artem Gorlachev

1 answer 1

JS and CSS should work in conjunction with each other. Ideally, the JS code should only manipulate the CSS classes, thereby achieving an even distinction between logic and presentation.