PageSpeed affected by Elfsight widget

  • Issue description: After implementing Elfsight all-in-one review widget, our PageSpeed score has dropped quite a bit. The widget is placed below initial viewport, but still quite much affects the PageSpeed. Have we implemented it wrongly?

  • Link to the page with the widget in question: www.formheim.no

2 Likes

Hi there, @Formheim :waving_hand:

I am so sorry for the inconvenience!

I’ve noticed that the widget’s installation code is placed in your website’s <head>. Could you please try to move it lower to the <body> and let me know if it helped :slightly_smiling_face:

1 Like

I am using the react-elfsight-widget package to load the widget, not manual HTML-tag

2 Likes

I am already using “lazy” attribute:

        <ElfsightWidget widgetId="xxxx" lazy />
2 Likes

Got it, thanks! Please let me look into this with the devs. I’ll update you once I have their response :slightly_smiling_face:

2 Likes

Hi there, @Formheim :waving_hand:

Thank you for waiting!

Please try to add “first-activity” or “in-viewport” to the lazy attribute and let me know if it helped. Here is how it should look:

<ElfsightWidget widgetId="3d7518ac-e280-4221-958a-f80f190d7fa5" lazy="first-activity" />

1 Like

That did the trick, thanks!

2 Likes

Perfect, you’re very welcome :wink:

1 Like