Last updated March 2026
Whether you are running WordPress, another CMS, or a custom website, the tools and toggles in your hosting dashboard and optimization plugins can make a big difference – for better or worse. What many site owners do not realize is that turning on everything often leads to broken layouts, slower performance, or plugin conflicts. This guide explains which optimization settings deliver real gains in speed and stability, which ones are risky, and why.
No-Brainer Optimizations (Turn ON)
- ✅ Collapse Whitespace – reduces HTML size; no layout or SEO impact.
- ✅ Extend Cache and Extend Cache PDFs – improves browser reuse of assets.
- ✅ Pre-Resolve DNS – resolves external domains early (fonts, analytics) for small wins.
- ✅ Remove Comments and Remove Quotes – trims HTML safely.
- ✅ Trim URLs – cleans up and shortens asset URLs on HTTPS websites.
- ✅ Move CSS Above Scripts and Move CSS to <head> – improves how quickly your page looks styled by ensuring CSS loads before scripts.
- ✅ Canonicalize JavaScript Libraries – uses well-cached CDN libraries (like jQuery).
- ✅ Minify JavaScript – removes whitespace and comments without changing behavior.
- ✅ Insert Image Dimensions – stabilizes layout (improves CLS).
- ✅ Lazy Load Images – defers below-the-fold images for faster perceived speed.
Situational Tweaks (Optional)
- ⚙️ Include JavaScript Source Maps – helpful for debugging; can be off in production.
- ⚙️ Rewrite Style Attributes with URLs – use only if background images go missing after a migration or CDN change.
- ⚙️ Convert Meta Tags – harmless but rarely impactful.
Usually Leave OFF (Proceed with Caution)
- 🚫 Combine CSS and Combine JavaScript – modern browsers already handle multiple requests efficiently; combining can break load order or styles.
- 🚫 Inline CSS and Inline JavaScript – bloats HTML and interferes with caching; minimal benefit.
- 🚫 Flatten CSS Imports and Fallback Rewrite CSS URLs – can change style order or break background paths.
- 🚫 Convert to WebP (animated or lossless), Recompress or Resize Images, Sprite Images – let a dedicated image plugin manage compression and formats.
- 🚫 Combine Heads – multiple <head> tags suggest a deeper template issue; do not mask it.
- 🚫 Deduplicate Inlined Images – most sites do not inline large images, so the benefit is negligible.
Optimization Setting Summary
| Setting | Category | Recommendation | Why |
|---|---|---|---|
| Collapse Whitespace | HTML | ✅ On | Small size reduction; zero risk. |
| Extend Cache | Caching | ✅ On | Improves browser reuse of assets. |
| Extend Cache PDFs | Caching | ✅ On | Better caching for downloadable PDFs. |
| Pre-Resolve DNS | Networking | ✅ On | Resolves external domains sooner. |
| Remove Comments | HTML | ✅ On | Trims HTML safely. |
| Remove Quotes | HTML | ✅ On | Safe attribute cleanup. |
| Trim URLs | HTML | ✅ On | Leaner URLs on HTTPS. |
| Move CSS Above Scripts | CSS | ✅ On | Ensures styling appears quickly. |
| Move CSS to <head> | CSS | ✅ On | Best practice for rendering. |
| Canonicalize JS Libraries | JS | ✅ On | CDN-cached libraries load faster. |
| Minify JavaScript | JS | ✅ On | Removes whitespace and comments only. |
| Insert Image Dimensions | Images | ✅ On | Reduces layout shifts (CLS). |
| Lazy Load Images | Images | ✅ On | Defers below-fold requests. |
| Include JS Source Maps | JS | ⚙️ Optional | Useful for debugging only. |
| Rewrite Style Attrs with URLs | CSS | ⚙️ Optional | Use if backgrounds break post-migration. |
| Convert Meta Tags | HTML | ⚙️ Optional | Marginal benefit. |
| Combine CSS | CSS | 🚫 Off | Can break order or conditional styles. |
| Combine JavaScript | JS | 🚫 Off | High break risk from load-order changes. |
| Inline CSS | CSS | 🚫 Off | Bloats HTML; worse caching. |
| Inline JavaScript | JS | 🚫 Off | Bloats HTML; minimal gains. |
| Flatten CSS Imports | CSS | 🚫 Off | May alter cascade or responsive behavior. |
| Fallback Rewrite CSS URLs | CSS | 🚫 Off | Risk of broken paths or backgrounds. |
| Convert to WebP (Animated or Lossless) | Images | 🚫 Off | Let your image plugin handle formats. |
| Inline Images | Images | 🚫 Off | Bloats HTML; hurts caching. |
| Recompress Images | Images | 🚫 Off | Avoid double compression or quality loss. |
| Resize Images or Resize Mobile Images | Images | 🚫 Off | Let responsive images handle this. |
| Sprite Images | Images | 🚫 Off | Outdated; can misalign icons. |
| Combine Heads | HTML | 🚫 Off | Fix template, do not post-process. |
| Deduplicate Inlined Images | Images | 🚫 Off | Little impact on most sites. |
Performance and SEO Checklist
- Compression: Enable GZIP or Brotli; confirm HTTP/2 or HTTP/3.
- Caching stack: Avoid duplication; prefer browser and server cache, keep plugin caching simple.
- CDN: Add Cloudflare (free) for global delivery and SSL simplicity.
- Database cleanup: Run WP-Optimize or Advanced Database Cleaner to purge revisions, transients, and orphaned meta.
- Security and backups: Schedule off-server backups; add Wordfence or iThemes Security.
- Mobile UX: Run Google’s Mobile-Friendly Test; fix tap targets and spacing.
- Analytics: Verify GA4 beacons after SSL setup.
- Search Console: Re-verify HTTPS properties; resubmit sitemap; fix mixed content if any.
How to Test Changes Safely
- Toggle one optimization at a time; hard-refresh in an incognito window.
- Watch for layout shifts, console errors, broken forms, or missing images.
- Measure before and after with PageSpeed Insights or GTmetrix.
- If something regresses, revert the last toggle and clear caches.