All Projects → Kazap → lazyload-vue

Kazap / lazyload-vue

Licence: MIT license
Vue Plugin for vanilla-lazyload

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to lazyload-vue

guide-to-async-components
📖 Guide To JavaScript Async Components
Stars: ✭ 79 (+172.41%)
Mutual labels:  lazyload, lazyload-images
lazysimon
Minimal effort 350 byte JavaScript library to lazy load all <img> on your website
Stars: ✭ 18 (-37.93%)
Mutual labels:  lazyload, lazyload-images
rocket-lazy-load
Standalone LazyLoad plugin for WordPress (based on WP Rocket)
Stars: ✭ 25 (-13.79%)
Mutual labels:  lazyload, lazyload-images
jekyll-loading-lazy
🧙🏽‍♀️ Automatically adds loading="lazy" to <img> and <iframe> tags. Load images on your sites lazily without JavaScript.
Stars: ✭ 41 (+41.38%)
Mutual labels:  lazyload, lazyload-images
ngx-progressive-image-loader
lazy load img/picture, prevent reflow and seo friendly.
Stars: ✭ 35 (+20.69%)
Mutual labels:  lazyload, lazyload-images
magento2-catalog-lazy-load
Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension
Stars: ✭ 56 (+93.1%)
Mutual labels:  lazyload, lazyload-images
lazy-load-images.js
Progressive & lazy loading images.
Stars: ✭ 17 (-41.38%)
Mutual labels:  lazyload, lazyload-images
Vanilla Lazyload
LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, iframes and scripts to when they will enter the viewport. Written in plain "vanilla" JavaScript, it leverages IntersectionObserver, supports responsive images and enables native lazy loading.
Stars: ✭ 6,596 (+22644.83%)
Mutual labels:  lazyload, lazyload-images
raf-pool
requestAnimationFrame pool to avoid busyness on the thread
Stars: ✭ 16 (-44.83%)
Mutual labels:  lazyload, lazyload-images
vue-ray
Debug your Vue 2 & 3 code with Ray to fix problems faster
Stars: ✭ 48 (+65.52%)
Mutual labels:  vue-plugin
vue-plausible
Plausible Analytics Vue.js Plugin and NuxtJS Module
Stars: ✭ 107 (+268.97%)
Mutual labels:  vue-plugin
vue-svg-inline-plugin
Vue plugin for inline replacement of SVG images with actual content of SVG files.
Stars: ✭ 30 (+3.45%)
Mutual labels:  vue-plugin
generator-vue-plugin
Yeoman generator generating vue plugin 🚀
Stars: ✭ 29 (+0%)
Mutual labels:  vue-plugin
zsh-lazyenv
Environments for lazy load commands and speed up start up time of zsh
Stars: ✭ 16 (-44.83%)
Mutual labels:  lazyload
vue-plugin
Highlight.js Vue Plugin
Stars: ✭ 102 (+251.72%)
Mutual labels:  vue-plugin
vue-inview
vue-plugin for in-view package
Stars: ✭ 100 (+244.83%)
Mutual labels:  vue-plugin
vue-package-template
Boilerplate for your next, ES6 Vue.js package. Ready for npm deployments
Stars: ✭ 12 (-58.62%)
Mutual labels:  vue-plugin
LazyHTML
LazyHTML is an OpenSource Javascript Library that Supports Lazy Loading of any elements without Modifying Code, LazyHTML can lazy load Ads, Videos, Images, Widgets, Javascript, CSS, Inline-Javascript, Inline-CSS & Any HTML.
Stars: ✭ 47 (+62.07%)
Mutual labels:  lazyload
loadeer
🦌 Tiny, performant, SEO-friendly lazy loading library
Stars: ✭ 30 (+3.45%)
Mutual labels:  lazyload
cms-fe-angular8
A Content Management System with Angular8, UI use Ant-Design(ng-zorro-antd)
Stars: ✭ 65 (+124.14%)
Mutual labels:  lazyload

lazyload-vue

Vue Plugin for vanilla-lazyload

Build status:

CircleCI

features

  • Simple usage with v-lazy-src
  • Accepts options Vue.use(LazyloadVue, options)
  • Multiple instances
  • Scrolling Panel
  • Multiple scrolling panels
  • Responsive images - img tag with srcset / sizes
  • Responsive images - picture tag
  • Delay load
  • Videos - Tag video
  • Lazy Iframes
  • Lazy Background images with v-lazy-bg

Install

yarn add lazyload-vue

Usage

import LazyloadVue from 'lazyload-vue'

Vue.use(LazyloadVue)

Directive lazy-src example

<template>
  <img v-lazy-src="'http://lorempixel.com/300/300'" />
</template>

Directive lazy-container example

<template>
  <div v-lazy-container class="scrollingPanel">
    <img v-lazy-src="'http://lorempixel.com/300/300'" />
    ... other images
  </div>
</template>
<style>
  .scrollingPanel {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
</style>

Example with options

import LazyloadVue from 'lazyload-vue'

Vue.use(LazyloadVue, {
    instances: {
        root: {
            elements_selector: '.lazy-custom-root'
        },
        webp: {
            elements_selector: '.lazy-webp'
            to_webp: true
        }
    }
})
<template>
  <div>
    <img v-lazy-src="'http://lorempixel.com/300/300'">
    <img v-lazy-src:webp="'http://lorempixel.com/300/300'">
  </div>
</template>

Check options section on documentation: vanilla-lazyload

Development Setup

# Project setup

yarn install

# Compiles and hot-reloads for development

yarn start

# Compiles and minifies for production

yarn build

# Run your tests

yarn test

# Lints and fixes files

yarn lint

# Run your unit tests

yarn test:unit
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].