Stop loading of images with javascript (lazyload)?

前端 未结 9 2404
醉梦人生
醉梦人生 2020-12-19 08:03

I am trying to stop the loading of images with javascript on dom ready and then init the loading whenever i want, a so called lazy loading of images. Something like this:

9条回答
  •  孤城傲影
    2020-12-19 08:33

    I'd suggest using the Jquery Lazyload plug-in for this. It does exactly what you want.

    http://www.appelsiini.net/projects/lazyload

提交回复
热议问题