2 Repos
Stops scroll-based loading and loads remaining off-screen images before cleanup.
Distinct from Image Lazy Loading: Distinct from Image Lazy Loading: focuses on the teardown and cleanup of the lazy loading instance, not the loading mechanism itself.
Explore 2 awesome GitHub repositories matching web development · Instance Destruction. Refine with filters or upvote what's useful.
Lazyload is a JavaScript plugin that defers the loading of images until they scroll into the viewport, using the browser's Intersection Observer API to detect visibility. It is designed to speed up initial page load and save bandwidth by delaying off-screen images, and includes a jQuery-compatible wrapper for drop-in integration with existing jQuery code. The plugin distinguishes itself through support for responsive images, loading different sources based on screen size, and a blur-up placeholder effect that shows a low-resolution image that transitions into the sharp version once fully load
Stops scroll-based loading and loads remaining off-screen images before cleanup.
Scrollama is a JavaScript library for scroll-driven storytelling that uses the browser's native IntersectionObserver API to trigger step-based callbacks and animations as the user scrolls through a page. It pins graphic elements using CSS sticky positioning while scrolling through associated text steps, enabling side-by-side narrative experiences without JavaScript-driven layout calculations. The library provides a configurable offset threshold system that accepts a single global offset or per-element data-attribute offsets to define the viewport position that triggers step events. It reports
Removes all observers and callback functions to clean up the scroll-tracking instance.