ApoorvSaxena/lozad.js

Ajax Help

TheBoringBOT opened this issue · 1 comments

When I go back to a page that has already lazy loaded images, the images will seem to have a quick flash as if there is a fast o>1 opacity.

Is there a way to use the lozad function once then remove it?
Or
Someway to remove that 'flash'?

Just reiterate this is to do with ajax loading/reloading

You can try something like that:

$('body').on 'ajax:success', (event, data, status, xhr) -> lozad().observe();