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

Problem with Ajaxed Content and Unveilhooks #972

Open
JamesToothill opened this issue Nov 7, 2022 · 0 comments
Open

Problem with Ajaxed Content and Unveilhooks #972

JamesToothill opened this issue Nov 7, 2022 · 0 comments
Labels

Comments

@JamesToothill
Copy link

Describe the bug
When applying data-script to an element that is later re-added with ajax the lazyloading class sticks and the new element is never 'lazyloaded' I believe it to be related to #799 as I believe the callback function is never reached and therefore 'lazyloaded' never triggered as the script already exists in the dom and therefore is not re-added, I'll add a PR to fix this myself..

To Reproduce
jsfiddle.net

Steps to reproduce the behavior:
See JS Fiddle

What is the expected behavior:
Element would lazyload correctly

What happened instead:
Element does not lazyload

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

No branches or pull requests

1 participant