Menu Optimizer
Menu Optimizer is a powerful performance optimization plugin that generates static HTML files for your WordPress menus, dramatically reducing server load and improving page load times. Real-World Success: This optimization technique helped achieve the first WooCommerce store with a perfect 100/100 m
Menu Optimizer is a powerful performance optimization plugin that generates static HTML files for your WordPress menus, dramatically reducing server load and improving page load times.
Real-World Success: This optimization technique helped achieve the first WooCommerce store with a perfect 100/100 mobile score on Google PageSpeed Insights. Read the WP Rocket case study
Why Menu Caching Matters
Menu generation requires significant compute time on WordPress and WooCommerce sites. Every page load requires WordPress to: * Query the database for menu items * Process menu hierarchy * Apply filters and hooks * Render HTML output
Menu Optimizer eliminates this overhead by pre-generating menu HTML files that are served instantly.
The DOM Size Problem
Google Lighthouse triggers warnings when a page exceeds 1,500 DOM nodes (HTML elements). For e-commerce sites with extensive product categories:
- A mega menu with 200-300 categories can generate 3,000-5,000+ DOM elements
- Each nested menu item multiplies the element count
- This exceeds Google’s limits and hurts Core Web Vitals scores
Menu Optimizer’s lazy loading keeps your initial DOM size under 1,500 nodes by loading only top-level items (typically 50-100 elements). Submenus load on-demand, maintaining excellent performance.
Key Features
- Performance Boost – Reduces menu rendering time with static file caching
- Multiple Menu Support – Cache and display multiple menus independently on the same page
- Horizontal & Vertical Layouts – Supports both menu orientations for flexible placement
- Static File Generation – Pre-generates HTML files for instant delivery
- Lazy Loading – Top-level items load instantly; submenus load on first hover
- Smart Caching – Uses localStorage for even faster subsequent loads
- Max Mega Menu Compatible – Fully supports complex mega menu layouts