Archived topic
off-canvas menus issue when js delayed
5 replies · Started by Mohammed on August 26, 2022
hi,
thanks for generatepress and generateblocks.
Upon trying some performance optimization options, delaying JS. (not deferring, this is different)
There was an issue with off-canvas mobile menu.
I excluded the scripts from being delayed: offside.min.js, menu.min.js, jquery, but still not working
I might not keeping the actual settings due to testing, so let me know if you need the website url and settings to be activated for this.
if that might help, console show error uncaught: offside not defined.
Not having experience with this, so appreciate your help.
Hi there,
Just want to confirm that if you disable the delaying JS option, the off-canvas menu works properly?
And please use the private info field to share your site link.
Most JS should be inserted in the footer which loads at the end, I'm not sure why they need to be delayed.
yes it's working of course.
This is just to pass easily the google core web vitals standard on mobile. delaying scripts offer slightly better load times on mobile.
for the link like i said, i'm with the tests, i don't think it's needed, i stated the error for help.
But if you need to check the site with the actual settings, let me know.
Hi there,
not sure what we can do to assist, as we cannot know your optimization ( plugin ? ) is doing.
But, if you want to share a link to the site with the delay JS enabled we can take a look.
in this case, you'll just need to delay specific scripts that needs to be delayed.
this will avoid these issues.
Can we see the site with the actual issue ?