Skip to main content
Version: 1.0.2

LazyLoad

Overview

The LazyLoad component defers the loading of off-screen content (like images, videos, or heavy components) until it is about to enter the viewport.
This improves initial page load times and enhances performance.

Preview

Loading...

Installation

npx @mindfiredigital/ignix-ui add lazyload

Usage

Import the component:

import { LazyLoad } from './components/ui';
<LazyLoad 
threshold="100px"
animation="fade"
once={true}
placeholder={<Skeleton />}
>
<HeavyContent />
</LazyLoad>