What is unlazy?
mainunlazy is a universal, framework-agnostic lazy loading library designed for placeholder images. It leverages native browser APIs like loading="lazy" to provide efficient image loading.
Key capabilities include:
- Placeholder Support: Uses BlurHash and ThumbHash compact hash strings to decode into blurry placeholder images.
- Flexible Decoding: Supports SSR (Server-Side Rendering) decoding or client-side decoding at runtime.
- Auto-Sizing: Automatically calculates the
sizesattribute based on display width. - SEO Optimization: Detects bots and crawlers to load full images immediately for indexing.
- Broad Compatibility: Works with any framework or no framework at all. Dedicated integrations are available for Vue, React, Solid, Svelte, and Nuxt.