-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
30 lines (30 loc) · 1.22 KB
/
Copy pathpackage.json
File metadata and controls
30 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "binary-lazy-loading",
"version": "1.0.0",
"private": false,
"dependencies": {
"react": "^16.5.0",
"react-dom": "^16.5.0"
},
"description": "Instead of brute forcing the entire list of images to be lazily loaded, use binary search algorithm to minimize looping of testing whether the element is in view port or not. ## Configure Call `registerLazyImageScrollHandler()` in `componentDidMount` of root class to register scroll listener. ## How to use it ? Just import it using `import LazyImage from 'lazy-image'` & whereever `<img />` tag is needed, use `<LazyImage src={this.props.src} />`. And that will lazy load the image with optimized version of lazy loading.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vihangpatel/binary-lazy-loading.git"
},
"author": "Vihang Patel <vihang.engg@gmail.com>",
"contributors": [
{
"name": "Manjula Dube",
"email": "dube.manjula668@gmail.com"
}
],
"license": "ISC",
"bugs": {
"url": "https://github.com/vihangpatel/binary-lazy-loading/issues"
},
"homepage": "https://github.com/vihangpatel/binary-lazy-loading#readme"
}