Skip to content
New issue

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

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

Already on GitHub? # 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

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

No branches or pull requests

1 participant