An open API service indexing awesome lists of open source software.

https://github.com/cutwell/lazy-image-loader

Lazy image loading for graphic-heavy websites on low-bandwidth connections
https://github.com/cutwell/lazy-image-loader

image-loading javascript lazy-loading optimization

Last synced: 2 months ago
JSON representation

Lazy image loading for graphic-heavy websites on low-bandwidth connections

Awesome Lists containing this project

README

        

![image comparison](assets/banner.png)

### Requirements
• lazy images must all use a consistent height and width as their original image to ensure correct page layout is maintained (this can be achieved with smaller images enlarged via css).

### Usage
> View an example page at [```example.html```](https://cutwell.github.io/lazy-image-loader/example)

Construct your HTML page as below. Once imported, the JS script runs automatically and will lazy load images once any part of the image enters the viewport.

```html

```

### Testing
View how the page performs using your browers Developer Tools, try throttling your page load if your internet is too fast.

### Attribution
* Example lazy load image: Photo by Luis del Río from Pexels