Twinstream - re: lazy loading images...

User 244626 Photo


Registered User
811 posts

Alter Eagle wrote:
That seems to load pretty good too Gary.
I wonder if you could do a js onload in the head to fire to change the dom before the jquery to get around the hard edit? I think I remember reading something on Stack Overflow on getting around that, but it was a few years ago.


Thanks Alter Eagle, I have been finding the water a little deep for me when trying to edit the DOM as its being created. MutationObserver seems interesting and if I am not mistaken this has been popping into Foundation 6 Code recently. At least I see these "mutants" in the html and wonder.....where do they come from ?

I am also looking at finding someway to "initiate" and "kill" the Lazy plugin based on media querys so I can have multiple settings for mobile and desktop.

This plugin looks interesting...

http://wicky.nillia.ms/enquire.js/

Thanks for your input as always....

Gary
Bootstrap 5 CSS Grid.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.