To prevent every video from loading when the page opened, I developed a reusable lazy-loading solution based on IntersectionObserver. Videos are loaded only when their sections approach the viewport, with separate desktop and mobile sources and additional handling for Safari, iOS and energy-saving conditions.