Load (Lazy Loading) a Div whenever the DIV gets visible for the first time

前端 未结 4 1528
灰色年华
灰色年华 2020-12-02 19:10

I want to enable a lazy loading for the contents of my website.

Just like Jquery Image loading http://www.appelsiini.net/projects/lazyload that is valid only for ima

4条回答
  •  北海茫月
    2020-12-02 19:41

    You may consider way point library :)

    http://imakewebthings.com/waypoints/api/waypoint/

    Its use cases and api's are defined in above link

    It is of 9 kb when compressed. It will add an additional -100 ms- 50ms timelag while loading page on 3g/ 4g

    Edit :- It can be used standalone and it also supports all major frameworks.

提交回复
热议问题