Lazyloading -> Interactions with initial state do not work

Hello,

I wanted to try out the lazyloading, because the pagespeed of some projects are a bit to slow… I implemented the lazyloading fromthis post

I added the script in the head of the home page,
I added images with the class lazyload, and the data-attribute data-scr, I used the links of the images as data-value.

However, when I add an interaction to the image with the ‘set initial state’, the interaction does not work anymore when the image has the lazyload class.

Any tips?

My sharelink

Published link