Site logo

Archived topic

Off Canvas Panel Menu Not loading

6 replies · Started by Gonzalo on March 15, 2023

Viewing posts 1–7 of 7

Hi,

I been troubleshooting a CLS issue on my page all day without success.

I was able to improve the CLS score a lot by delaying JS loading until interaction as seen on following image (I am using litespeed cache):

https://svpremier.com/wp-content/uploads/2023/03/Screen-Shot-2023-03-15-at-8.10.50-PM.png

However, now that I enabled that setting the off canvas menu is not loading when you click on it...

Any ideas on how to fix it? Maybe preventing the JS for the menu feature from being delayed? I know there is a setting within Litespeed to prevent certain JS files from loading delayed. But not sure what I should put in there.

Any help is much appreciated!

Hi Gonzalo,

Try excluding these:

generatepress/assets/js/menu.min.js
generatepress/assets/css/main.min.css

Unfortunately none of that worked.
It is a shame because page speed score goes up a lot by delaying JS loading and the whole website works ok with that setting on to the exception of that menu that does not even open.

This archived topic is closed to new replies.