Memondo Rail This snippet provides a secure an efficient way to listen to scroll events. The code is bassed on the IntersectionObserver API.