Website Optimization Settings You Should Know — What to Enable, What to Skip, and Why

Reading Time: 3 minutes

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

SettingCategoryRecommendationWhy
Collapse WhitespaceHTML✅ OnSmall size reduction; zero risk.
Extend CacheCaching✅ OnImproves browser reuse of assets.
Extend Cache PDFsCaching✅ OnBetter caching for downloadable PDFs.
Pre-Resolve DNSNetworking✅ OnResolves external domains sooner.
Remove CommentsHTML✅ OnTrims HTML safely.
Remove QuotesHTML✅ OnSafe attribute cleanup.
Trim URLsHTML✅ OnLeaner URLs on HTTPS.
Move CSS Above ScriptsCSS✅ OnEnsures styling appears quickly.
Move CSS to <head>CSS✅ OnBest practice for rendering.
Canonicalize JS LibrariesJS✅ OnCDN-cached libraries load faster.
Minify JavaScriptJS✅ OnRemoves whitespace and comments only.
Insert Image DimensionsImages✅ OnReduces layout shifts (CLS).
Lazy Load ImagesImages✅ OnDefers below-fold requests.
Include JS Source MapsJS⚙️ OptionalUseful for debugging only.
Rewrite Style Attrs with URLsCSS⚙️ OptionalUse if backgrounds break post-migration.
Convert Meta TagsHTML⚙️ OptionalMarginal benefit.
Combine CSSCSS🚫 OffCan break order or conditional styles.
Combine JavaScriptJS🚫 OffHigh break risk from load-order changes.
Inline CSSCSS🚫 OffBloats HTML; worse caching.
Inline JavaScriptJS🚫 OffBloats HTML; minimal gains.
Flatten CSS ImportsCSS🚫 OffMay alter cascade or responsive behavior.
Fallback Rewrite CSS URLsCSS🚫 OffRisk of broken paths or backgrounds.
Convert to WebP (Animated or Lossless)Images🚫 OffLet your image plugin handle formats.
Inline ImagesImages🚫 OffBloats HTML; hurts caching.
Recompress ImagesImages🚫 OffAvoid double compression or quality loss.
Resize Images or Resize Mobile ImagesImages🚫 OffLet responsive images handle this.
Sprite ImagesImages🚫 OffOutdated; can misalign icons.
Combine HeadsHTML🚫 OffFix template, do not post-process.
Deduplicate Inlined ImagesImages🚫 OffLittle 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

  1. Toggle one optimization at a time; hard-refresh in an incognito window.
  2. Watch for layout shifts, console errors, broken forms, or missing images.
  3. Measure before and after with PageSpeed Insights or GTmetrix.
  4. If something regresses, revert the last toggle and clear caches.

Leave a Comment

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