Mobile menu not loading till after first user interaction on Mai Engine powered theme with WP Rocket

Solution was to disable ‘Delay JavaScript execution’ under WP Rocket > Settings > File Optimization then clear the WP Rocket (and Cloudflare) caches.

(Trying to exclude the Mai Engine files via the ‘Excluded JavaScript Files’ option under ‘Delay JavaScript execution’ with /wp-content/plugins/mai-engine/assets/js/min/(.*).min.js and similar didn’t work).

Leave a Reply

Your email address will not be published. Required fields are marked *