All Projects â†’ nuxt-modules â†’ lazy-load

nuxt-modules / lazy-load

Licence: MIT license
🌅 Lazy Loading module for Nuxt 3

Programming Languages

typescript
32286 projects
Vue
7211 projects

Projects that are alternatives of or similar to lazy-load

nuxt-ts-module
A tiny module to use Typescript within Nuxt.js application.
Stars: ✭ 21 (-30%)
Mutual labels:  module, nuxt
Auth Module
auth.nuxtjs.org
Stars: ✭ 1,624 (+5313.33%)
Mutual labels:  module, nuxt
bs-dynamic-import
📦🚀 BuckleScript dynamic import interop on JavaScript environment
Stars: ✭ 31 (+3.33%)
Mutual labels:  module, lazy-loading
nuxt-speedkit
nuxt-speedkit will help you to improve the lighthouse performance score (100/100) of your website.
Stars: ✭ 401 (+1236.67%)
Mutual labels:  nuxt, lazy-loading
Google Optimize Module
SSR friendly Google Optimize module for Nuxt.js
Stars: ✭ 180 (+500%)
Mutual labels:  module, nuxt
Nuxt Dev To Clone
Build DEV.TO clone with Nuxt.js and new `fetch` hook
Stars: ✭ 118 (+293.33%)
Mutual labels:  nuxt, lazy-loading
nuxt-storyblok-queries
Nuxt.js module to simplify queries to the Storyblok API
Stars: ✭ 17 (-43.33%)
Mutual labels:  module, nuxt
Nuxt Lazysizes
Lazysizes module for Nuxt.js
Stars: ✭ 25 (-16.67%)
Mutual labels:  nuxt, lazy-loading
Nuxt Client Init Module
Provide client version of nuxtServerInit
Stars: ✭ 176 (+486.67%)
Mutual labels:  module, nuxt
Moment Module
Efficient Moment.js integration for Nuxt
Stars: ✭ 164 (+446.67%)
Mutual labels:  module, nuxt
nuxt-modules
AX2's Nuxt modules
Stars: ✭ 30 (+0%)
Mutual labels:  module, nuxt
Nuxt Sass Resources Loader
SASS resources (e.g. variables, mixins etc.) module for NuxtJs
Stars: ✭ 191 (+536.67%)
Mutual labels:  module, nuxt
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (+350%)
Mutual labels:  module, nuxt
Gtm Module
Google Tag Manager Module for Nuxt.js
Stars: ✭ 187 (+523.33%)
Mutual labels:  module, nuxt
Nuxt Netlify Cms Module
Easy Netlify CMS integration with nuxt.js
Stars: ✭ 195 (+550%)
Mutual labels:  module, nuxt
nativelib-cli
NativeLib is a plugin management system for Godot engine.
Stars: ✭ 19 (-36.67%)
Mutual labels:  module
puppetlabs-cloudformation
CoudFormation template for installing PE
Stars: ✭ 32 (+6.67%)
Mutual labels:  module
puppetlabs-java ks
Uses a combination of keytool and openssl to manage entries in a Java keystore
Stars: ✭ 34 (+13.33%)
Mutual labels:  module
GDX-lazy-font
auto self-generate BitmapFont for libgdx 1.5.0 +
Stars: ✭ 26 (-13.33%)
Mutual labels:  lazy-loading
nuxt-static
Generate a static site using Nuxt.js
Stars: ✭ 31 (+3.33%)
Mutual labels:  nuxt

@nuxt-modules/lazy-load

@nuxt-modules/lazy-load

npm version npm downloads Github Actions CI Codecov License

Lazy Loading Images module for Nuxt 3

Features

  • Nuxt 3 ready
  • Easy Lazy Loading Images, Pictures, and other HTML elements
  • Advanced configuration using Lozad.js
  • Handy composable useLazyLoad
  • TypeScript support

📖  Read the documentation

Setup

yarn add @nuxt-modules/lazy-load # yarn
npm i @nuxt-modules/lazy-load # npm

Basic usage

Firstly, you need to add @nuxt-modules/lazy-load to your Nuxt config.

// nuxt.config.js

{
  buildModules: [
    ['@nuxt-modules/lazy-load']
  ]
}

Then you can start using @nuxt-modules/lazy-load in your setup function!

<script setup lang="ts">
const { init } = useLazyLoad();

onMounted(() => {
  init()
})
</script>

Lastly, let's add a lazy class and change src attribute to data-src

<img class="lazy" data-src="https://path-to-image.jpg"/>

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using yarn dev or npm run dev

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].