Introduction 🚀
Why Use SiteGround Optimizer 🤔
- Lightning-fast caching on NGINX with dynamic and static layers 🏎️
- Automated image optimization (WebP conversion, lazy loading) 🖼️
- Minification and combination of CSS/JS to reduce HTTP requests 📦
- Scheduled database cleanup to keep your site lean 💾
- Advanced tools (preloading, DNS prefetch) for expert-level gains 🧰
Recommended Settings Overview 🔧
| Section | Setting | Recommended | Note |
|---|---|---|---|
| Dynamic Caching | Enable Caching | On | Caches dynamic pages per user/session |
| Environment | PHP Version | 8.x | Faster execution, better security |
| Frontend Optimization | Minify CSS | On | Reduces file size |
| Frontend Optimization | Defer Render-blocking JS | On | Improves page speed score |
| Media Optimization | Lazy Load Images | On | Defers off-screen images |
| Database Optimization | Schedule Cleanup | Weekly | Keeps database lean |
1. Dynamic Caching ⚡
Enable Caching: On – Activates dynamic page caching on NGINX.Auto Purge on Content Change: On – Automatically clears cache when you update posts/pages.Exclude URLs: Only if you have custom scripts that must not be cached (e.g., /wp-admin/).Logged-in User Caching: Off – Ensures administrators see live changes without stale cache.
2. Environment Optimization 🛠️
PHP Version: Switch to PHP 8.0 or higher in SiteGround Site Tools →Dev →PHP Manager . PHP 8 brings speed improvements of up to 20% over PHP 7.4.NGINX Direct Delivery: On – Bypasses Apache for static files, reducing latency.HTTPS Redirect: On – Forces SSL site-wide, vital for HTTP/2 and performance.
3. Frontend Optimization 🖌️
Minify CSS Files: On – Strips whitespace and comments. Always test after activation for any styling issues.Combine CSS Files: Conditional – Useful if you have multiple small CSS files OFF if your theme already bundles CSS.Minify JavaScript Files: On – Reduces script size.Defer Render-blocking JS: On – Loads JS after HTML parsing. Improves first paint metrics.Async JavaScript Files: On – For non-critical scripts like analytics or chatbots.Remove Query Strings: On – Enhances caching for static resources served by CDNs.
4. Media Optimization 🖼️
Enable Lazy Load: On – Defers off-screen images until users scroll.Serve WebP Versions: On – Converts JPEG/PNG to WebP on the fly. Ensure browser compatibility by falling back to original formats.Image Placeholder: Blurred – Provides a low-res preview, enhancing perceived load speed.Preload Featured Images: On – Preloads key visuals for faster LCP (Largest Contentful Paint).
5. Database Optimization 💾
Post Revisions: Keep last 5 – Deletes older revisions but retains recent edits.Auto-Drafts Spam Comments: On – Removes junk every scheduled cleanup.Transient Options: On – Clears expired transients to free up table space.Schedule: Weekly – Balances performance with resource use. Monthly if you have low editorial activity.
6. Advanced Tools 🎓
Preload Links: Enable – Prefetches internal links on hover for instant navigation.DNS Prefetch: Add domains like//fonts.gstatic.com or//www.google-analytics.com to reduce DNS lookup time.Heartbeat Control: Reduce to 60s or Off in WP Admin – Limits frequent AJAX calls.Critical CSS: Generate inline – Use manual mode for best reliability. Check SiteGround Critical CSS Guide.