Core Web Vitals are critical ranking factors in Google’s algorithm. Nexus Pro includes powerful performance optimization features to help you achieve perfect scores.
Understanding Core Web Vitals
The Three Metrics
- LCP (Largest Contentful Paint): Loading performance
- Good: < 2.5 seconds
- Needs improvement: 2.5 – 4.0 seconds
- Poor: > 4.0 seconds
- FID (First Input Delay): Interactivity
- Good: < 100 milliseconds
- Needs improvement: 100 – 300 milliseconds
- Poor: > 300 milliseconds
- CLS (Cumulative Layout Shift): Visual stability
- Good: < 0.1
- Needs improvement: 0.1 – 0.25
- Poor: > 0.25
Why Core Web Vitals Matter
- Direct Google ranking factor (since June 2021)
- Impacts user experience and engagement
- Affects conversion rates (every 0.1s delay = 7% conversion loss)
- Mobile search prioritization
- Competitive SEO advantage
Nexus Pro Performance Features
1. Smart Lazy Loading
Defer offscreen images and iframes to improve initial load time.
Enable Lazy Loading:
- Navigate to Customizer > Performance Optimization
- Toggle “Enable Lazy Loading for Images”
- Toggle “Enable Lazy Loading for Iframes”
- Set loading threshold (default: 300px)
How It Works:
- Images below the fold load only when user scrolls
- Saves bandwidth and reduces initial payload
- Improves LCP by prioritizing above-fold content
- Native browser lazy loading (no JavaScript overhead)
Advanced Settings:
// Exclude specific images from lazy loading
add_filter('devry_nexus_lazy_load_skip_images', function($skip_classes) {
$skip_classes[] = 'no-lazy';
$skip_classes[] = 'hero-image';
return $skip_classes;
});
2. Critical Resource Preloading
Load critical resources faster by preloading them in the <head>.
Enable Preloading:
- Settings > Nexus Pro > Performance
- Enable “Preload Critical Resources”
- Select resources to preload:
- Fonts
- CSS files
- Hero images
- JavaScript files
What Gets Preloaded:
<link rel="preload" href="/fonts/main-font.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/images/hero.jpg" as="image">
<link rel="preload" href="/css/critical.css" as="style">
Impact on LCP:
- Reduces time to load above-fold content
- Prioritizes render-critical resources
- Can improve LCP by 0.5-1.5 seconds
3. WordPress Emoji Disabling
Remove unnecessary WordPress emoji scripts (~10KB + DNS lookup).
Enable:
- Customizer > Performance Optimization
- Toggle “Disable WordPress Emojis”
- Saves ~10KB and 1 DNS request
Performance Gain:
- Eliminates
wp-emoji-release.min.js(7.5KB) - Removes DNS prefetch to
s.w.org - Reduces FID by removing unnecessary JavaScript
- No impact on emoji display (browsers support natively)
4. Schema Output Optimization
Minimize and cache schema markup for faster delivery.
Configuration:
- Settings > Nexus Pro > Advanced
- Enable “Minify Schema JSON-LD”
- Enable “Cache Schema Output” (24-hour cache)
Performance Impact:
- Reduces HTML size by 15-30%
- Eliminates redundant schema processing
- Improves TTFB (Time to First Byte)
Optimizing LCP (Largest Contentful Paint)
Identify Your LCP Element
- Open Chrome DevTools
- Navigate to Lighthouse tab
- Run performance audit
- Check “Diagnostics” section for LCP element
Common LCP Elements:
- Hero images
- Header background images
- Main content heading
- Featured images on blog posts
Optimization Strategies
1. Preload LCP Images
For hero/featured images:
// Add to functions.php or Nexus Pro custom code
add_action('wp_head', function() {
if (is_front_page()) {
echo '<link rel="preload" as="image" href="/images/hero.jpg">';
}
});
Or use Nexus Pro UI:
- Settings > Performance > Critical Resource Preloading
- Add hero image URL
- Select “image” as resource type
2. Optimize Image Sizes
- Use WebP format (30% smaller than JPEG)
- Responsive images with
srcset - Proper dimensions (don’t scale down huge images)
- Compress to 80-85% quality
Nexus Pro Image Optimization:
- Enable WebP conversion: Settings > Performance > Image Optimization
- Nexus Pro automatically generates WebP versions
- Falls back to JPEG/PNG for unsupported browsers
3. Remove Render-Blocking Resources
Defer Non-Critical CSS:
// Inline critical CSS, defer the rest
add_filter('style_loader_tag', function($html, $handle) {
if ($handle !== 'nexus-critical-css') {
$html = str_replace("media='all'", "media='print' onload=\"this.media='all'\"", $html);
}
return $html;
}, 10, 2);
Nexus Pro handles this automatically when:
- Customizer > Performance > “Optimize CSS Delivery” is enabled
4. Reduce Server Response Time (TTFB)
Improve Time to First Byte:
- Use quality hosting (recommended: managed WordPress hosting)
- Enable object caching (Redis/Memcached)
- Use a CDN (Cloudflare, StackPath, BunnyCDN)
- Optimize database queries
Nexus Pro TTFB Optimization:
- Enable page caching integration
- Compatible with WP Rocket, W3 Total Cache, WP Super Cache
- Automatic cache purging on content updates
Optimizing FID (First Input Delay)
Reduce JavaScript Execution Time
1. Defer Non-Critical JavaScript
// Defer non-essential scripts
add_filter('script_loader_tag', function($tag, $handle) {
$defer_scripts = ['nexus-animations', 'comment-reply'];
if (in_array($handle, $defer_scripts)) {
return str_replace(' src', ' defer src', $tag);
}
return $tag;
}, 10, 2);
Nexus Pro Auto-Defer:
- Settings > Performance > JavaScript Optimization
- Enable “Defer Non-Critical JavaScript”
- Nexus Pro intelligently defers safe scripts
2. Remove Unused JavaScript
Disable features you don’t need:
- Settings > Nexus Pro > Plugin Settings
- Disable unused blocks (TOC, Citation, TLDR if not using)
- Disable unused schema types
- Reduce editor features if they’re not needed
3. Optimize Third-Party Scripts
For Google Analytics, fonts, etc.:
<!-- Preconnect to third-party domains -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://www.google-analytics.com">
Nexus Pro Third-Party Optimization:
- Customizer > Performance > Third-Party Scripts
- Add domains for preconnect
- Nexus Pro adds appropriate
<link>tags
Optimizing CLS (Cumulative Layout Shift)
Common CLS Causes
- Images without dimensions
- Ads, embeds, iframes without space reserved
- Web fonts causing FOIT/FOUT
- Dynamically injected content
Solutions
1. Always Set Image Dimensions
<!-- Bad: No dimensions -->
<img src="photo.jpg" alt="Photo">
<!-- Good: Explicit dimensions -->
<img src="photo.jpg" alt="Photo" width="800" height="600">
Nexus Pro automatically:
- Adds width/height to all images in blocks
- Reserves space for featured images
- Prevents layout shift from lazy-loaded images
2. Reserve Space for Embeds
For YouTube, Twitter embeds:
.wp-block-embed {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
}
.wp-block-embed iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Nexus Pro includes this CSS by default.
3. Optimize Web Font Loading
Use font-display: swap to prevent invisible text:
@font-face {
font-family: 'CustomFont';
src: url('font.woff2') format('woff2');
font-display: swap; /* Show fallback font immediately */
}
Nexus Pro Font Optimization:
- Automatically adds
font-display: swapto Google Fonts - Preloads custom fonts
- Settings > Performance > Font Optimization
4. Avoid Content Shifting
Don’t insert content above existing content:
❌ Bad: Injecting notification bars at top ✅ Good: Fixed position or at bottom
Nexus Pro best practices:
- Notification bars use fixed positioning
- Dynamic content loads in placeholders
- Sticky TOC doesn’t affect layout
Advanced Performance Techniques
1. Critical CSS Inlining
Inline above-the-fold CSS in <head>:
<style>
/* Critical CSS for immediate render */
.hero { background: #667eea; }
.header { height: 80px; }
</style>
Generate Critical CSS:
- Use tool like Critical CSS Generator
- Paste output in Settings > Nexus Pro > Performance > Critical CSS
- Nexus Pro inlines it on every page
- Defers full stylesheet
2. Resource Hints
Use DNS prefetch, preconnect, prefetch:
<!-- DNS prefetch for external domains -->
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<!-- Preconnect for critical external resources -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Prefetch next likely page -->
<link rel="prefetch" href="/about">
Nexus Pro Resource Hints:
- Settings > Performance > Resource Hints
- Add domains for DNS prefetch
- Add URLs for prefetch
- Automatic preconnect for Google Fonts
3. Database Optimization
Reduce database queries:
// Cache expensive queries
$results = wp_cache_get('nexus_expensive_query');
if (false === $results) {
$results = $wpdb->get_results($query);
wp_cache_set('nexus_expensive_query', $results, '', 3600);
}
Nexus Pro includes:
- Query caching for schema data
- Transient caching for settings
- Automatic cache invalidation
4. HTML Minification
Remove whitespace and comments:
// Minify HTML output
add_action('template_redirect', function() {
ob_start(function($buffer) {
return preg_replace('/\s+/', ' ', $buffer);
});
});
Enable in Nexus Pro:
- Settings > Performance > HTML Optimization
- Toggle “Minify HTML Output”
- Removes whitespace, preserves functionality
Measuring Performance Improvements
Tools for Testing
- Google PageSpeed Insights
- Tests both mobile and desktop
- Shows Core Web Vitals
- Field data from real users (CrUX)
- Lab data from simulated tests
- Chrome DevTools Lighthouse
- Detailed performance metrics
- Identifies specific issues
- Provides improvement suggestions
- Can test locally before deploying
- WebPageTest
- Test from multiple locations
- Detailed waterfall charts
- Video recording of page load
- Connection throttling options
- Search Console Core Web Vitals Report
- Real user data
- Mobile vs desktop performance
- URL grouping by issues
- Historical performance tracking
Testing Workflow
- Baseline Test: Test before optimization
- Enable One Feature: Turn on single optimization
- Test Again: Measure impact
- Compare Results: Verify improvement
- Repeat: Enable next feature
Nexus Pro Performance Dashboard:
- Navigate to Settings > Nexus Pro > Performance
- View Core Web Vitals scores
- See optimization recommendations
- Track improvements over time
Performance Optimization Checklist
Essential (Do First)
- [ ] Enable lazy loading for images
- [ ] Disable WordPress emojis
- [ ] Optimize image formats (WebP)
- [ ] Add width/height to all images
- [ ] Enable page caching
Important (Do Next)
- [ ] Preload critical resources
- [ ] Defer non-critical JavaScript
- [ ] Minify schema output
- [ ] Optimize web font loading
- [ ] Remove unused features
Advanced (For Best Results)
- [ ] Inline critical CSS
- [ ] Implement resource hints
- [ ] Database query optimization
- [ ] HTML minification
- [ ] CDN implementation
Troubleshooting Performance Issues
LCP Still Slow?
- Check hosting response time (should be < 200ms)
- Verify hero image is preloaded
- Test with different caching plugins
- Consider upgrading hosting
High CLS Score?
- Inspect elements with DevTools Layout Shift regions
- Add explicit dimensions to shifting elements
- Test with ad blockers (ads often cause CLS)
- Fix web font loading
Poor FID?
- Reduce JavaScript payload
- Defer all non-critical scripts
- Break up long tasks (use
requestIdleCallback) - Consider code splitting
Cache Not Working?
- Clear all caches (browser, CDN, server, plugin)
- Verify caching plugin configuration
- Check for logged-in user bypass
- Test in incognito mode
Related Articles:

