Site logo

Archived topic

Litespeed JS deferred/delayed = mobile menu double click

2 replies · Started by Iurii on December 19, 2021

Viewing posts 1–3 of 3

Hello, i'm currently trying to optimize my page with litespeed and when JS turned to deferred or delayed, mobile menu needs two taps to open.
Could you navigate me to the right generatepress .js file i need to exclude in settings? Thanks!

Aditionaly UCSS generation breaks mobile menu layout and submenu doesnt work, so i need to exclude a css file as well, is there a separate css and js that are responsible for mobile menu/menu or maybe you know other workarounds?

Hi there,

You can exclude the following scripts:

From theme:
/wp-content/themes/generatepress/assets/js/dropdown-click.min.js
/wp-content/themes/generatepress/assets/js/menu.min.js

https://github.com/tomusborne/generatepress/tree/master/assets/js

From GP premium: (if you have off-canval panel and sticky menu enabled)
/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js
/wp-content/plugins/gp-premium/menu-plus/functions/js/sticky.min.js

Note: you may have to disable critical CSS and/or remove unused CSS as they can potentially break menu functions as well.

This archived topic is closed to new replies.