Launching today

Lazyload
Lazy load anything with precision.
3 followers
Lazy load anything with precision.
3 followers
A high-performance, lightweight JavaScript utility built on top of the IntersectionObserver API to lazily load anything like Images, Videos, Components, also Execute Functions.



Hey Product Hunt community! 👋
I’m thrilled to introduce @bitlaab/lazyload, a high-performance, ultra-lightweight JavaScript utility built to optimize your web applications with precision.
As developers, we know how heavy dependencies and slow loading states impact Core Web Vitals and user retention. That’s why we built this with zero dependencies, keeping it under 5KB gzipped while maximizing efficiency using the modern IntersectionObserver API.
Key Features:
🚀 Ultra Lightweight: Less than 5KB gzipped with zero dependencies.
🎯 Universal Support: Lazy load not just images and videos, but also background images, iframes, custom components, and execute functions.
⚙️ Function Execution: Dynamically execute specific functions exactly when an element enters the viewport.
🛠️ Framework Agnostic: Built in vanilla JS with full TypeScript support—works seamlessly in React, Next.js, and more.
Whether you're looking to push your performance metrics or simplify asset rendering, we designed this to make high-performance optimization accessible with just a few lines of code.
Check out our documentation here: bitlaablazyload.web.app
I would love to get your feedback, answer any questions, and hear how you plan to use it in your projects! 🚀