JavaScript Scroll_optimization Guide
Optimizing scroll performance with passive events, CSS features, and efficient handlers for smooth scrolling. The guide walks through Passive Events & CSS. `{passive:true}` — tells browser not to preventDefault (improves scroll perf). `scroll-snap-type:y mandatory` — CSS snap points. `overscroll-behavior:contain` — stop scroll chain. `overflow-anchor:auto` — prevent scroll jump. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.