Skip to content
/ expose Public
forked from luis-almeida/unveil

A very lightweight React mixin to lazy load images

Notifications You must be signed in to change notification settings

dok/expose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#expose.js ###A very lightweight mixin to lazy load images for react #####A fork of unveil by Luis Almeida

Most of us are familiar with the Lazy Load plugin by Mika Tuupola. This plugin is very useful and it boosts performance delaying loading of images in long web pages because images outside of viewport (visible part of web page) won't be loaded until the user scrolls to them. Lazy Load has some cool options such as custom effects, container, events or data attribute. If you're not gonna use any of them you can reduce the file size by leaving just the essential code to show the images. That's what I did and this is my lightweight version of Lazy Load with support for serving high-resolution images to devices with retina displays - less than 1k.

Visit expose's project page to read the documentation and see the demo.

###Browser support Compatible with All Browsers and IE7+.

###License expose is licensed under the MIT license.

About

A very lightweight React mixin to lazy load images

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 88.0%
  • JavaScript 12.0%