Hi everybody
I don’t know if this concerns only me, but for several days, the widgets take a long time to load (several seconds, average 6 seconds). This is the case for every widgets, on any websites. Is it being resolved?
Have a nice day.
Hi @O11! Happy to see you in our Community! Welcome
I am so sorry about this inconvenience!
To make the widget appear faster, 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.
Could you please check it and let me know if it helped?
Hi Max.
Thanks for your help!
I removed the “defer” attribute. It seems to be faster. I’ll do several checks and will let you know.
Best regards.
You are always welcome
You can try to install your script line to head.
Hi @user2625
We are so grateful for your comment!
You are absolutely right and we have already moved the code to the head.
Many thanks for your participation and welcome to Elfsight Community