@unlazy/nuxt
Nuxt lazy loading module for placeholder images
63,147
889
| Install | |
|---|---|
npm install @unlazy/nuxt |
|
| Latest Version: | 2.0.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Aug 7, 2026 |
| Links: | GitHub · npm |
Maintainer: johannschopplich
@unlazy/nuxt
Nuxt module for unlazy, the universal lazy loading library leveraging native browser APIs.
- 🎀 Native: Utilizes the
loading="lazy"attribute - 🌊 BlurHash & ThumbHash support: SSR & client-side decoding
- ⚡ Core Web Vitals-aware: Eager-priority path for above-the-fold images, dev-mode LCP warning
- 🎟
<picture>: Art direction with automaticsizes
Installation
# pnpm
pnpm add @unlazy/nuxt
# npm
npm i @unlazy/nuxt
Quick Start
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@unlazy/nuxt'],
})
The UnLazyImage component is auto-imported globally:
<template>
<UnLazyImage
blurhash="LKO2:N%2Tw=w]~RBVZRi};RPxuwH"
src-set="image-320w.jpg 320w, image-640w.jpg 640w"
auto-sizes
/>
</template>
Documentation
📖 Read the full documentation, including hash-based placeholders, Core Web Vitals, and SSR.
Migrating from v1
See the migration guide for breaking changes in v2, including the @loaded → @image-load rename and the new @image-error event.
License
MIT License © 2023-PRESENT Johann Schopplich
Related Packages
@unlazy/core
Universal lazy loading library for placeholder images leveraging native browser...
232,463
889
nuxt-lazy-hydrate
This module is a wrapper around Vue 3 Lazy Hydration Plugin for Nuxt 3.
331,369
108
Version History
| Version | Released | License |
|---|---|---|
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT | |
| 0.12.4 | MIT | |
| 0.12.3 | MIT | |
| 0.12.2 | MIT | |
| 0.12.1 | MIT | |
| 0.12.0 | MIT | |
| 0.11.8 | MIT | |
| 0.11.7 | MIT | |
| 0.11.6 | MIT | |
| 0.11.5 | MIT | |
| 0.11.4 | MIT | |
| 0.11.3 | MIT | |
| 0.11.2 | MIT | |
| 0.11.1 | MIT | |
| 0.11.0 | MIT | |
| 0.10.5 | MIT | |
| 0.10.4 | MIT | |
| 0.10.3 | MIT | |
| 0.10.2 | MIT | |
| 0.10.1 | MIT | |
| 0.10.0 | MIT | |
| 0.9.5 | MIT | |
| 0.9.4 | MIT | |
| 0.9.3 | MIT | |
| 0.9.2 | MIT | |
| 0.9.1 | MIT | |
| 0.9.0 | MIT |
Showing the latest 30 of 50. See every release on npm