Better web performance

The widget loads a lot of js files that harm my page speed.
I will be nice to have a option for web performance

1 Like

There is a “lazy load” feature where the JS does not load until the widget is scrolled up into the viewport for most widgets. This has a substantial help for page speed. There are posts about it here, and most of the widgets use this automatically as part of the install code.

2 Likes

Hey there @user11527 and welcome to the Community :wave:

Hugh is absolutely right! You are very welcome to reinstall your widget by using some kind of lazy loading.

To make it work, you need to add a data-elfsight-app-lazy attribute to the widget installation code. Here’s what the installation code will look like:

<script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script> <div class="elfsight-app-WIDGET-ID" data-elfsight-app-lazy></div>

Please replace WIDGET_ID in the code above with the ID of your own widget and install it on your website.

Give it a try and let me know if it helped :slightly_smiling_face: