Loading issues

It very often happens that all elfsightapps on a page take a very long to load or do not load at all and the page needs to be refreshed. see image: I have added the link to page but it happens on all pages:

* Link to the page with the widget in question:

1 Like

Hi @user3246 :wave:

I’ve checked your website and all the widgets load fast on my side.

However, in order to make the widget appear faster on the page, you can remove the defer attribute from the widget installation code, which makes the widget load only after all other content on the page is loaded. Here’s what the code will look like:

<script src="https://apps.elfsight.com/p/platform.js"></script> <div class="elfsight-app-WIDGET-ID"></div>

Another way of making the widget load simultaneously is changing the defer attribute to async . Here is the code:

<script src="https://apps.elfsight.com/p/platform.js" async></script> <div class="elfsight-app-WIDGET-ID"></div>

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

Please check it and let me know if it helped :slightly_smiling_face:

Hi Max,

Thanks for this, which is preferable, removing or async?


Hi @user3246 :wave:

Firstly, try to change the defer attribute to async.

If it didn’t help, please try the second option.

Could you please check it and let me know how it works for you?