Wix LCP (Largest Contentful Paint) Optimization
Largest Contentful Paint (LCP) measures how quickly the largest content element becomes visible. Good LCP should be under 2.5 seconds. This guide covers Wix-specific strategies to improve LCP.
Understanding LCP on Wix
What is LCP?
LCP marks when the largest visible element (image, video, or text block) is rendered. On most Wix sites, this is:
- Hero section image or video
- Large product image
- Banner graphic
- Main content area
Wix-Specific LCP Challenges
- Heavy platform JavaScript - Wix loads ~500KB+ of framework code before content
- Render-blocking resources - Wix's architecture delays content painting
- Large hero images - Default Wix templates often use oversized images
- Third-party apps - Popular apps add significant overhead
- Limited code control - Cannot optimize critical rendering path completely
Target LCP Scores
| Score | Rating | User Experience |
|---|---|---|
| 0-2.5s | Good ✅ | Fast loading |
| 2.5-4.0s | Needs Improvement ⚠️ | Acceptable but improvable |
| 4.0s+ | Poor ❌ | Slow, frustrating |
Diagnosing LCP Issues
1. Measure Current LCP
PageSpeed Insights:
- Visit PageSpeed Insights
- Enter your Wix URL
- Check "Largest Contentful Paint" metric
- Note: Test both mobile and desktop
Chrome DevTools:
- Open DevTools (F12)
- Lighthouse tab → Generate report
- Find LCP under "Metrics"
- Expand for element details
2. Identify LCP Element
In PageSpeed Insights:
- Scroll to "Diagnostics" section
- Look for "Largest Contentful Paint element"
- Shows which element is causing slow LCP
Common LCP elements on Wix:
<img>- Hero section images<video>- Background videos<div>- Large text blocks (if no images load quickly)
3. Analyze Filmstrip
The filmstrip shows when LCP element appears:
- If LCP appears late (3+ seconds), priority optimization needed
- Check what loads before LCP (unnecessary resources?)
Wix Platform Optimizations
1. Enable Wix Turbo (Priority #1)
Wix Turbo is a performance optimization feature that significantly improves LCP.
How to enable:
- Wix Dashboard → Settings → Site Performance
- Toggle Wix Turbo to ON
- Publish your site
Requirements:
- Premium Wix plan or higher
- Not available on free plans
Impact: Can improve LCP by 30-50%
Limitations:
- May conflict with some third-party apps
- Test thoroughly after enabling
- Monitor analytics for issues
2. Optimize Wix Site Settings
Reduce site width (if appropriate):
- Dashboard → Design → Site Width
- Narrower sites load faster (less content to render)
- Consider 980px-1200px vs full-width
Disable unnecessary features:
- Dashboard → Settings → Advanced
- Disable unused Wix apps
- Remove inactive marketing integrations
Image Optimization
1. Optimize Hero Images
The hero image is typically the LCP element.
Best practices:
Correct dimensions - Don't upload 4K images for 1920px display
- Desktop hero: 1920px width max
- Mobile hero: 750px width max
Use appropriate formats:
- WebP - Best compression (supported by Wix)
- JPEG - For photos (80-85% quality)
- PNG - Only for graphics requiring transparency
Compress before upload:
How to replace hero image:
- Editor → Click hero section
- Change Image → Upload optimized version
- Ensure image is not cropped excessively (wastes bandwidth)
2. Enable Wix's Built-in Optimization
Image optimization in Media Manager:
- Dashboard → Media Manager
- Select image → Settings (gear icon)
- Enable Lazy loading for below-fold images
- Disable lazy loading for LCP image (hero)
Important: The LCP element should NOT be lazy-loaded.
3. Preload LCP Image (Advanced)
For critical images, add preload hint:
- Dashboard → Settings → Custom Code
- Add new code in
<head>:
<link rel="preload" as="image" href="YOUR_HERO_IMAGE_URL" />
How to get image URL:
- Right-click hero image → Inspect
- Find
<img src="...">in DevTools - Copy the
srcURL (usuallystatic.wixstatic.com/...)
Note: Only preload the LCP image, not all images.
4. Replace Background Videos
Background videos hurt LCP significantly.
Alternatives:
- Use poster image - Show image until video loads
- Replace with optimized image - Consider if video is necessary
- Use animation instead - CSS animations have no LCP impact
If video is required:
- Ensure poster image is optimized
- Use MP4 format (best compression)
- Keep video file < 5MB
- Consider removing video on mobile
Font Optimization
1. Minimize Custom Fonts
Each custom font delays LCP.
Best practices:
Use system fonts when possible (no loading time)
- Arial, Helvetica, Georgia, etc.
Limit custom fonts:
- 2 font families maximum
- Only include needed weights (regular, bold)
How to change fonts:
- Editor → Design → Fonts
- Select simpler, web-safe fonts
2. Preload Critical Fonts
For fonts used in LCP element:
<!-- In Custom Code → Head -->
<link rel="preload" as="font" type="font/woff2"
href="FONT_URL" crossorigin="anonymous" />
Wix fonts location:
- Inspect LCP text element
- Find font URL in Network tab
- Usually hosted on
static.wixstatic.com
Third-Party App Optimization
1. Audit Installed Apps
Many Wix apps add significant JavaScript overhead.
How to audit:
- Dashboard → Apps → Manage Apps
- Review installed apps
- Remove unused apps
Common LCP-affecting apps:
- Live chat widgets (defer until page interactive)
- Pop-up builders (load after LCP)
- Social media feeds (lazy load)
- Review widgets (defer)
2. Defer Non-Critical Apps
For apps that can load later:
Velo code to defer app loading:
// File: Site Code
$w.onReady(function () {
// Delay non-critical app initialization
setTimeout(() => {
// Load app script here
loadNonCriticalApps();
}, 3000); // 3 second delay
});
function loadNonCriticalApps() {
// Add app-specific loading code
}
3. Replace Heavy Apps
Consider lightweight alternatives:
- Chat widgets: Replace always-visible chat with contact button
- Social feeds: Use static social icons instead of live feeds
- Reviews: Static testimonials vs dynamic widget
Code & Script Optimization
1. Minimize Custom Code
Every custom script delays LCP.
Audit custom code:
- Dashboard → Settings → Custom Code
- Review all added scripts
- Remove or defer non-critical code
Defer scripts:
Change this:
<script src="script.js"></script>
To this:
<script src="script.js" defer></script>
Or load after LCP:
<script>
window.addEventListener('load', function() {
setTimeout(function() {
// Your code here
}, 2000);
});
</script>
2. Optimize GTM Implementation
GTM can delay LCP if not configured properly.
Best practices:
- Use async GTM container (default)
- Defer non-critical tags until after page load
- Use tag firing priorities - Load critical tags first
GTM tag firing sequence:
- Critical tags (priority: high)
- Analytics tags (priority: normal)
- Marketing pixels (priority: low)
See GTM setup guide for details.
3. Remove Unused Tracking
Audit tracking implementations:
- Remove duplicate GA4 installations
- Disable unused Meta Pixel events
- Clean up old marketing integration code
Wix-Specific Techniques
1. Strip Section Lazy Loading
Wix strips (sections) load progressively. Optimize loading:
In Wix Editor:
- Click on strips/sections below the fold
- Settings → Scroll Effects
- Disable animations (they delay rendering)
2. Optimize Repeaters
Wix repeaters can slow LCP if in hero area.
Solutions:
- Limit items shown initially (use pagination)
- Move repeaters below the fold
- Use static elements for critical content
3. Reduce Layout Complexity
Simpler layouts render faster.
Tips:
- Minimize nested containers in hero section
- Use fewer columns in critical area
- Avoid overlapping elements (causes repaints)
Mobile-Specific Optimizations
Mobile typically has worse LCP than desktop.
1. Mobile-Specific Images
Wix allows different images for mobile:
- Editor → Hero section → Change Image
- Enable Different image for mobile
- Upload smaller, mobile-optimized image
Mobile image specs:
- Width: 750px (max)
- File size: < 100KB
- Format: WebP or JPEG
2. Simplify Mobile Layout
Hide non-essential elements on mobile:
- Select element → Settings
- Layout → Hide on mobile
- Reduces content to load
3. Remove Background Videos on Mobile
Videos especially hurt mobile LCP:
- Select video background
- Settings → Mobile
- Replace with static image
Advanced Techniques (Velo)
1. Dynamically Load Below-Fold Content
Defer loading of content below the fold:
// File: Page Code
$w.onReady(function () {
// Initially hide below-fold sections
$w('#belowFoldSection').hide();
// Load after LCP
setTimeout(() => {
$w('#belowFoldSection').show();
}, 1500);
});
2. Optimize Image Loading
Use Velo to control image loading:
$w.onReady(function () {
// Set image source only after critical render
const heroImage = $w('#heroImage');
// Preload critical image
const img = new Image();
img.onload = () => {
heroImage.src = 'optimized-hero-image.jpg';
};
img.src = 'optimized-hero-image.jpg';
});
Testing & Validation
1. Before/After Comparison
Test LCP before and after optimizations:
- Record baseline LCP score
- Implement optimizations
- Publish changes
- Wait 24 hours (for cache clearing)
- Retest with PageSpeed Insights
2. Real User Monitoring
Monitor actual user LCP:
Using GA4:
// Track Core Web Vitals to GA4
import { getCLS, getFID, getFCP, getLCP, getTTFB } from 'web-vitals';
getLCP((metric) => {
if (window.gtag) {
gtag('event', 'web_vitals', {
event_category: 'Web Vitals',
event_label: 'LCP',
value: Math.round(metric.value),
non_interaction: true
});
}
});
Add this via Custom Code or Velo.
3. Monitor Over Time
Track LCP trends:
- Google Search Console → Core Web Vitals report
- Review monthly for regression
- Set up alerts for score drops
LCP Optimization Checklist
- Enable Wix Turbo (if available)
- Optimize hero image (< 200KB, correct dimensions)
- Preload LCP image
- Remove/replace background video
- Minimize custom fonts (max 2 families)
- Audit and remove unused apps
- Defer non-critical scripts
- Optimize mobile images separately
- Remove unnecessary custom code
- Test with PageSpeed Insights
- Monitor real user data in Search Console
Expected Results
After optimization:
| Improvement | Expected LCP Reduction |
|---|---|
| Enable Wix Turbo | 30-50% |
| Optimize hero image | 20-40% |
| Remove background video | 40-60% |
| Remove unused apps | 10-30% |
| Defer scripts | 10-20% |
| Mobile-specific images | 20-40% (mobile only) |
Realistic targets:
- Desktop: < 2.5s (achievable)
- Mobile: < 3.0s (challenging but possible)
When LCP Can't Be Improved Further
Some Wix limitations are unavoidable:
- Platform overhead - Wix's framework is heavy
- Limited control - Cannot modify core loading sequence
- App dependencies - Some apps are necessary despite overhead
In these cases:
- Focus on other metrics (FID, CLS)
- Consider migrating to another platform for critical sites
- Document limitations for stakeholders