Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax response lazyload initialization setTimeout issue #124

Open
soumyarajtryz opened this issue Nov 27, 2019 · 0 comments
Open

Ajax response lazyload initialization setTimeout issue #124

soumyarajtryz opened this issue Nov 27, 2019 · 0 comments

Comments

@soumyarajtryz
Copy link

Image disappears after selecting sort filter in our sandbox url https://dev03-store-tmlewin.demandware.net/s/tmluk/ties/

lazyLoadXT is already initialized after checking success ajax response .

The solution is mention in github for ajax response is as follows

To apply lazy loading to new loaded content using ajaxComplete event. Note that $.lazyLoadXT.loadEvent = 'pageshow ajaxComplete'; may not work correctly because of content is not added to the page at the time of ajaxComplete event, that's why it's better to postpone initialization by setTimeout. But, this will not be a solution as the content load time (ajax response time) will vary on our different environments. Is there a more accurate solution to this issue with the settimeout event ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant