JQuery-lazyload parameter, jquery. lazyload
1. placeholder
Placeholder: 'image address', which occupies the position of the image to be loaded in advance.
2. effect
Effect: 'fadin'
Indicates the loading effect, for example: show () direct loading, fadeIn: fade in, slowdown () drop-down
3. threshold
Threshold: 200
Threshold can only be followed by numbers, indicating that when the height of the scroll bar is 200 away from the position of the loaded icon, the image starts to be loaded.
4. event
Event: 'click'
It indicates that the event is loaded only after it is triggered. Generally, click, mouseover, sport, and foobar (...) can be used to slide the mouse or click the image to start loading.
5. container
Container: $ ('# iner ')
Indicates loading in the container
6. failurelimit
Failurelimit: 10
Failurelimit can only be followed by numbers. lazyload does not continue loading when the first image is not in the courseware area by default, however, when the HTML container is messy, images in the visible area may not be loaded. failurelimit is intended to load N images outside the visible area to avoid this problem.