A
A
Alpha122020-05-08 18:06:34
JavaScript
Alpha12, 2020-05-08 18:06:34

How to override lazyload?

Good afternoon
In general, the essence of the matter, I put a lazy load, added a code at the end of the page

var lazyLoadInstance = new LazyLoad({
      elements_selector: ".lazy"
      // ... more custom settings?
    });

Everything works, but for example, if I have ajax pagination, or a filter, it doesn’t work, the preloader just spins, how can I get a photo?
Here is the site
https://lillyshop.pro/index.php?dispatch=products....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Neverov, 2020-05-08
@Alpha12

After receiving new products:
lazyLoadInstance.update();
Directly in the documentation, your case is indicated: https://github.com/verlok/lazyload#the-simple-easi...

A
Alpha12, 2020-05-08
@Alpha12

Fuuhhh well, finally) It was necessary to connect the laziload above all scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question