Delay Javascript Execution Question

Posted in: Newspaper
Post count: 195

Hey there,

I have a very annoying issue on my website – on mobile version when you load a page and click the menu button it loads really slow. Not only it loads slow but first it pushes the site back and after 2-3 seconds the menu appears. This is very bad user experience.

I noticed that if I switch delay javascript execution on WPRocket the problem is fixed – the menu loads immediately but as you can imagine a lot of other things get broken. I managed to exclude pretty much everything that gets bugged except the category siblings element and the filter of flex block elements.

Can you help me finding what to exclude so that these two elements don’t get broken?

If there is another workaround for the menu problem – please share.

Post count: 27744

Hello,

Please enable the option for the delay, and exclude those https://pastebin.com/qtjS6N1m -> https://pastebin.com/qtjS6N1m

Thank you!

Post count: 195

Hey!

Thank you for your quick response. For the filter of the flex block element – it worked! For the category siblings – there is still an issue. The categories are indeed shown when you load the page but they are not populated in their dropdowns, I recorded a video for you to see – https://www.loom.com/share/4e07504496d34a88b05d9baa6924588b?sid=bf07f08b-a0a7-431b-bc3c-4d17bea8d9d2

Please help me fix it if possible and thanks once more! 🙂

Post count: 27744

Hello,

Please try to add the code in the Theme Panel -> Analytics/JS code in the head with the style tags -> https://pastebin.com/zQvQmapH

Thank you!

Post count: 195

Hey,

Still no – https://www.loom.com/share/bb02824063824330baa7e89edc8a47e2?sid=09936aa4-6b1d-4f24-bf26-b3e94ec360e2

I see the filters now (like with the previous code) but they get a style shift once I interact with the page.

Post count: 27744

Hi,

This is the workaround that I can provide. Also, this is how the delay works, the user needs to interact with the page to load the content.

Thank you!

Post count: 195

Isn’t it possible to be fixed somehow?

Post count: 27744

Hi,

This is not a problem, because it is somewhat normal to have that delay for pagespeed and not only.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.