Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Burger Menu Mobile – INP Optimization

  • 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!

  • 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?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.