-
CAZS_BC
Hello,
Upon trying some performance optimization options, delaying and deferring JS with WP Rocket.
There was an issue with off-canvas mobile menu burger.
I excluded the scripts from being delayed: offside.min.js, menu.min.js, because I thought that these JS was in charge on opening the burger menu, but still not working.
When I click for the first time on the menu burger mobile, it takes like 2-3s before the menu displayed. That cause a bad INP. We have this problem in all our website with Generate Press.
Can you help me to find which JS is in charge off the burger animation in order to exclude it.
Thank you
-
Hi there,
Try exclude JS with id
generate-offside-js-extra
,generate-offside-js
,generate-menu-js-extra
,generate-menu-js
.Let me know if this helps!
-
CAZS_BC
Hi Ying,
Thanks for your quick reply!
I’ve excluded the suggested JS files (generate-offside-js-extra, generate-offside-js, generate-menu-js-extra, generate-menu-js), but unfortunately it hasn’t improved the behavior so far — the mobile burger menu still takes around 2–3 seconds to open on the first click.
Do you have any other ideas or scripts I could investigate?
Thanks again for your help!
-
Can you check with your cache plugin support on how to exclude the JS? Does ID work? Or does it require file paths?
- You must be logged in to reply to this topic.