Lazy load all widgets by default

The “lazy load” feature is excellent for improving pagespeed without decreasing the widget performance. There are very few cases where a widget would not benefit from being lazy loaded. (One example would be the age verification popup). The exceptions could be excluded. This will prevent us all from having to remember to add data-elfsight-app-lazy manually to the install code every time.

In the mean time for people who run into this thread.

Take this install code that the widgets give you:

script src="https://apps.elfsight.com/p/platform.js" defer></script>
<div class="elfsight-app-9d3beb9e-4c72-4bd1-8ed6-99999999999"></div>

And change it to this:

script src="https://apps.elfsight.com/p/platform.js" defer></script>
<div class="elfsight-app-9d3beb9e-4c72-4bd1-8ed6-99999999999" data-elfsight-app-lazy></div>
1 Like

Hugh, cannot but agree with you regarding the default lazy load! I really hope our devs will make it happen in our new Dashboard.

Thanks a lot for helping us!

1 Like