You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forcing data-loaded to "false" doesn't seem to help...
Expected Behavior
I followed the documentation to call observer.observer() on adding dynamic components. This only happens when I navigate across pages (and yes, dynamically generating them). Reloading the page works fine.
Current Behavior
The current/previous images loads normally, but the newly added components does not load. The new components has src as the placeholder (haven't been converted to data-src) and data-loaded is missing from the element.
Edit: data-loaded is missing when inspecting page, but on console log element with document.getElementById seems to show data-loaded is present.
Possible Solution
Was playing around and found a temporary and unstable fix which worked if i did this:
(Doesn't work half the time)
setTimeout(() => {
observer.observe();
}, 2000);
Context
I'm working with lozad on VueJs
The text was updated successfully, but these errors were encountered:
Referring to similar issues raised
#50
#156
data-loadedto"false"doesn't seem to help...Expected Behavior
I followed the documentation to call
observer.observer()on adding dynamic components. This only happens when I navigate across pages (and yes, dynamically generating them). Reloading the page works fine.Current Behavior
The current/previous images loads normally, but the newly added components does not load. The new components has
srcas the placeholder (haven't been converted todata-src) anddata-loadedis missing from the element.Edit:
data-loadedis missing when inspecting page, but on console log element withdocument.getElementByIdseems to showdata-loadedis present.Possible Solution
Was playing around and found a temporary and unstable fix which worked if i did this:
(Doesn't work half the time)
Context
I'm working with lozad on VueJs
The text was updated successfully, but these errors were encountered: