This document outlines best practices for using WP Hummingbird’s features, with a focus on and troubleshooting strategies. WP Hummingbird is a powerful tool, but incorrect configurations—especially under the Automatic mode—can cause significant front-end issues. This guide is designed to help you diagnose and resolve those issues efficiently.
While Hummingbird offers an Asset Optimization option, it is for production sites. The automatic feature tends to:
- Combine critical JavaScript and CSS files indiscriminately
- Minify assets in the wrong order or context
- Break site functionality (navigation, sliders, layout, forms, etc.)
, always use for greater control and predictability.
When using , Hummingbird provides control over individual CSS and JS assets. You will see each file listed with the following options:
- : Compresses the file by removing whitespace and comments. Recommended for nearly all files.
- : Merges the file with others into a single file to reduce HTTP requests. Use cautiously—improper combinations can break the site.
- : Advanced options that affect the load order. Only modify if you understand the asset’s function and placement.
- : Excludes the file from optimization. Use this if minification or combination causes breakage.
Whenever plugins or themes are added, updated, or removed, use the button. This ensures:
- New scripts/styles are detected
- Old or orphaned assets are removed from the optimization queue
This step helps maintain a clean and accurate asset list.
If the site was previously using , switching to will retain the (possibly broken) settings. Perform a clean reset by:
Switching to Manual Mode
Setting all CSS and JS files to:
This provides a safe baseline for beginning an iterative optimization process.
To avoid breaking the site and to make issues easier to trace, optimize assets :
Pick (e.g., a slider, form, or contact plugin)
Enable for only that plugin’s CSS and JS files
Monitor the site over the next :
- Test in multiple browsers and devices
- Check for layout issues or console errors
If everything works fine, repeat with another plugin
Stop when additional combinations start causing problems
This allows you to identify which assets cause conflicts and rollback easily if needed.
If a layout or script issue is observed, append this query string to the URL:
?avoid-minify=true
This temporarily bypasses Hummingbird’s minification and combination. If the issue with this parameter, it's likely related to asset optimization.
Open the affected page with ?avoid-minify=true
Open the browser’s (Right-click > Inspect Element or F12)
Identify key scripts and styles related to the broken elements
Return to the Hummingbird Asset Optimization panel and:
- Set
- Or disable Combine for them if that was enabled
This method helps you isolate the problem file(s) and fine-tune optimization settings.
- Rarely used on our sites due to frequent URL mismatches and file load failures
- Causes more problems than it solves in most WordPress environments
- While useful for improving Lighthouse/PageSpeed scores, it often breaks interactive elements like:
- Menus
- Sliders
- Forms
- Only enable after extensive testing, and never in combination with heavy JS-based plugins
- Auto-generated critical CSS can conflict with layout styling
- Causes flashes of unstyled content (FOUC) or broken layouts
- Use only with a full visual regression testing strategy
- : JS errors in the console often point to the exact script causing problems
- : After any changes, clear:
- Hummingbird cache
- Browser cache
- Page cache (if using a plugin like WP Rocket or W3 Total Cache)
- : Always test in incognito/private browsing to avoid cached assets
- : JavaScript files often depend on load order. Do not defer or move to the footer without confirming compatibility
- : If a script is inline and depends on a combined/minified external file, they must load in the right order
- : Use PageSpeed Insights or GTmetrix to confirm asset optimizations are taking effect
Combine one module at a time, test for 1 week
?avoid-minify=true
to isolate problems
Use CDN, Delay JS, and Critical CSS sparingly
Use browser inspector and console logs
By following this guide, you can optimize performance while maintaining stability and minimizing risk. Each site may behave slightly differently depending on its theme and plugin stack, so a deliberate, iterative approach is always preferred over automation.