A
A
Alexander Nameless082018-03-01 08:19:01
JavaScript
Alexander Nameless08, 2018-03-01 08:19:01

jQuery.lazyload for background-image?

There is a task to lazyload image loading in the following blocks: prntscr.com/il7uja , that is, images are set using background-image , and not using the img tag.
Has anyone done this with lazy (here is the plugin itself https://github.com/eisbehr-/jquery.lazy )? In principle, you can completely block to make lazy, if possible. Something to write your own is not reasonable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nameless08, 2018-03-01
@Nameless08

Sorry, inattentively reviewed the info on the site: jquery.eisbehr.de/lazy/example_load-background-images

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question