# Issues with widgets loading

**URL:** <https://community.elfsight.com/t/issues-with-widgets-loading/14323>\
**Category:** General Questions\
**Created:** [April 3, 2023, 3:10pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323 "2023-04-03T15:10:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![O11](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/o11/32/15074_2.png) [@O11](https://community.elfsight.com/u/O11)\
**Post date:** [April 3, 2023, 3:10pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/1 "2023-04-03T15:10:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 3, 2023, 5:04pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/3 "2023-04-03T17:04:15Z")

</div>

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](https://help.elfsight.com/article/1001-where-to-get-your-widget-id) and install it on your website.

Could you please check it and let me know if it helped?

---

<div class="post-metadata">

**Author:** ![O11](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/o11/32/15074_2.png) [@O11](https://community.elfsight.com/u/O11)\
**Post date:** [April 3, 2023, 6:26pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/4 "2023-04-03T18:26:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 3, 2023, 6:32pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/5 "2023-04-03T18:32:46Z")

</div>

You are always welcome 🙌

---

<div class="post-metadata">

**Author:** ![user2625](https://avatars.discourse-cdn.com/v4/letter/u/e19b73/32.png) [@user2625](https://community.elfsight.com/u/user2625)\
**Post date:** [April 6, 2023, 5:27pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/6 "2023-04-06T17:27:49Z")

</div>

You can try to install your script line to head.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 6, 2023, 6:26pm UTC](https://community.elfsight.com/t/issues-with-widgets-loading/14323/7 "2023-04-06T18:26:45Z")

</div>

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 ❤
