All Projects → 1000ch → Lazyload Image

1000ch / Lazyload Image

HTMLImageElement extension for lazy loading.

Projects that are alternatives of or similar to Lazyload Image

Progressively
A JavaScript library to load images progressively 🌇
Stars: ✭ 691 (+232.21%)
Mutual labels:  image, lazyload
Ng Lazy Load
Lazy loading images with Angular.
Stars: ✭ 12 (-94.23%)
Mutual labels:  image, lazyload
Defer.js
🥇 A super small, super efficient library that helps you lazy load everything like images, video, audio, iframe as well as stylesheets, and JavaScript.
Stars: ✭ 138 (-33.65%)
Mutual labels:  image, lazyload
Picasso
A Go image composer
Stars: ✭ 196 (-5.77%)
Mutual labels:  image
Arbitrary Text To Image Papers
A collection of arbitrary text to image papers with code (constantly updating)
Stars: ✭ 196 (-5.77%)
Mutual labels:  image
Orly
🏈 Generate your own O'RLY animal book cover to troll your colleagues | 生成你自己的O'RLY动物书封面,让你的同事惊掉下巴
Stars: ✭ 199 (-4.33%)
Mutual labels:  image
Picasso
Picasso is a high quality 2D vector graphic rendering library. It support path , matrix , gradient , pattern , image and truetype font.
Stars: ✭ 205 (-1.44%)
Mutual labels:  image
Vue Gwt
Vue.js Components/Custom Elements in Java with GWT. Developed at https://www.genmymodel.com.
Stars: ✭ 194 (-6.73%)
Mutual labels:  web-components
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (-3.37%)
Mutual labels:  image
Ptimagealbumviewcontroller
"Image Album" — or "Photo Album" if you like that better — View( Controller) for all crazy iOS developers out there...
Stars: ✭ 199 (-4.33%)
Mutual labels:  image
Laosj
golang light-weight image crawler
Stars: ✭ 199 (-4.33%)
Mutual labels:  image
React Native Progressive Image
🌁 ProgressiveImage, progressively load images with React Native.
Stars: ✭ 197 (-5.29%)
Mutual labels:  image
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (-5.77%)
Mutual labels:  image
Qimage Win
Windows 版本 Markdown 一键贴图工具,支持本地文件、截图、网络图片一键上传七牛云并返回图片引用,让 Markdown 中贴图变成一种享受。
Stars: ✭ 196 (-5.77%)
Mutual labels:  image
Googliser
a fast BASH multiple-image downloader
Stars: ✭ 202 (-2.88%)
Mutual labels:  image
Polyserve
Moved to Polymer/tools monorepo
Stars: ✭ 194 (-6.73%)
Mutual labels:  web-components
Exiftool Vendored.js
Fast, cross-platform Node.js access to ExifTool
Stars: ✭ 200 (-3.85%)
Mutual labels:  image
Silentbox
A lightbox inspired Vue.js component.
Stars: ✭ 196 (-5.77%)
Mutual labels:  image
Taro Listview
taro框架长列表方案 :集成下拉刷新、骨架屏、无限滚动、图片懒加载;
Stars: ✭ 197 (-5.29%)
Mutual labels:  lazyload
Openl3
OpenL3: Open-source deep audio and image embeddings
Stars: ✭ 200 (-3.85%)
Mutual labels:  image

🚩 Finally Native lazy-loading for the web was introduced. I recommend you to use loading attribute instead.

lazyload-image

HTMLImageElement extension for lazy loading. Images will be loaded when they are shown.

Install

Install lazyload-image via npm.

$ npm install lazyload-image

Usage

Import LazyloadImage and register it.

import LazyloadImage from 'https://unpkg.com/lazyload-image';

customElements.define('lazyload-image', LazyloadImage, {
  extends: 'img'
});

Modify your <img> elements such as following.

<img
  is="lazyload-image"
  src="path/to/your/image.jpg"
  offset="200px"
  width="100"
  height="100"
>

Fallback

If a browser does not support customElements.define(), images will be loaded as usual.

License

MIT © Shogo Sensui

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].