Hello!

I have an app that’s heavy on images and need to load the images only as 
they become visible. I would like to use a simple drop-in JavaScript 
library to do that:

https://github.com/toddmotto/echo

The library is loaded like this:

<script src="echo.js"></script>
<script>
    echo.init({…});
</script>

The initialization code finds all images with a certain data attribute and 
sprinkles some lazy-loading pixie dust on them. The obvious catch is that 
if Elm changes the DOM afterwards, there may be new lazy-loaded images 
which the Echo.js library doesn’t know about. What can I do? Is there some 
kind of hook that would let me know about DOM changes?

T.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to