Long widget loading time on smartphones

  • Issue description: Hello everyone. I’ve noticed that over the past week, the widget has been loading very slowly (about 30 seconds) on smartphones :grimacing: . Is it the same for you, or is it just my problem? It’s interesting that the widget loads quickly on a computer.

  • Link to the page with the widget in question: Расписание квизов Тамбов 2026 - на сайте M-PRO

@Tender_S,

I am seeing a similar load time on my 5g mobile and wired computer. If you have not already done so, remove the lazy loading statement from the Elfsight install code since the widget displays above and below page fold, even on mobile.

Remove this part => data-elfsight-app-lazy

Thank you for the advice, but removing the data-elfsight-app-lazy didn’t help me :thinking:

But I noticed something else. The widget on the website takes a long time to load if you access it from a phone. But if you touch the screen, the widget loads immediately!!! :thinking: You can see this in my video (12 sec)

And this didn’t happen before. The widget loaded on its own after 2–3 seconds.

Hello @Tender_S :waving_hand:

I’ve just checked your website and don’t see the widget displayed on mobile (only on desktop). If you’ve hidden the widget on mobile, could you please restore it (without data-elfsight-app-lazy)?

I’ll be happy to take a look :slightly_smiling_face:

Ok :ok_hand: I added data-elfsight-app-lazy. The code is set by default. You can take a look.

Thanks for restoring the widget — I can see it on my end now!

However, I wanted to check how it works without data-elfsight-app-lazy. Removing this attribute should allow the widget to load right away, without requiring any user interaction, so I’d like to investigate what might be going wrong in this case.

Could you please keep the widget on mobile, but remove data-elfsight-app-lazy?

Ok. I just deleted data-elfsight-app-lazy from the code.

And I see again. The widget on the website takes a long time to load if I access it from a phone. But if you touch the screen, the widget loads immediately!!! :thinking: You can see this in my video (12 sec)

Got it, thanks!

The lazy load is applied to the widget via rocket script used on your website:


To fix it, you can try to move this script to your website’s <head>. If this doesn’t help, you should remove the rocket script from your website :slightly_smiling_face:

Thanks! Indeed, the culprit behind the slow loading was the WordPress plugin “WP Rocket”.

I added two parameters to the “Delay JavaScript Execution” exceptions:

elfsightcdn.com/platform.js
platform.js

And now the widget loads perfectly on my page via a smartphone! :slightly_smiling_face: Ура!

Wow, that’s great! Thanks for the update :wink:

@Bob_Wilson thank you for the answer and your solution option :slightly_smiling_face: (maybe my solution will help you)

@Max thank you for your quick reaction and the solution path :slightly_smiling_face: