โ Back to Documentation
Website Optimization SOP
Purpose
Step-by-step standard operating procedures for Core Web Vitals optimization, UX standards, and A/B testing. Ties into the Web Performance and UX Track and provides ticket templates for developers.
Core Web Vitals Optimization
LCP
Largest Contentful Paint
< 2.5s
Target
FID
First Input Delay
< 100ms
Target
CLS
Cumulative Layout Shift
< 0.1
Target
๐ Step 1: Measure Baseline
- 1. Run PageSpeed Insights for all key pages
- 2. Set up Real User Monitoring (RUM) in GA4
- 3. Document current scores for LCP, FID, CLS
- 4. Identify top 10 pages by traffic for optimization
Tools: PageSpeed Insights, Chrome DevTools, WebPageTest
โก Step 2: Optimize LCP
- โ Preload critical resources (hero images, fonts)
- โ Optimize and compress images (WebP, AVIF)
- โ Remove render-blocking JavaScript and CSS
- โ Implement critical CSS inline
- โ Use CDN for static assets
๐ฏ Step 3: Optimize FID
- โ Break up long JavaScript tasks
- โ Use web workers for heavy computations
- โ Reduce JavaScript execution time
- โ Implement code splitting
- โ Defer non-critical JavaScript
๐ Step 4: Optimize CLS
- โ Set explicit dimensions for images and videos
- โ Reserve space for ads and embeds
- โ Avoid inserting content above existing content
- โ Use CSS transform for animations
- โ Load fonts with font-display: optional
UX Standards Checklist
๐จ Visual Hierarchy
- โก Clear primary CTA above the fold
- โก Consistent heading hierarchy (H1 โ H6)
- โก Adequate white space between sections
- โก Visual grouping of related content
- โก F-pattern or Z-pattern layout
๐ฑ Mobile Experience
- โก Touch targets minimum 44x44px
- โก Thumb-friendly navigation
- โก No horizontal scrolling
- โก Readable font size (16px minimum)
- โก Sticky header optimized for mobile
โฟ Accessibility
- โก Color contrast ratio 4.5:1 minimum
- โก Alt text for all images
- โก Keyboard navigation support
- โก ARIA labels where needed
- โก Focus indicators visible
๐ Loading States
- โก Skeleton screens for dynamic content
- โก Progress indicators for long processes
- โก Error states with recovery options
- โก Empty states with clear CTAs
- โก Optimistic UI updates
A/B Testing Framework
๐งช Testing Process
- 1. Hypothesis: Define what you're testing and expected outcome
- 2. Sample Size: Calculate required traffic (minimum 1000 per variant)
- 3. Duration: Run for at least 1 full business cycle (typically 2 weeks)
- 4. Significance: Aim for 95% statistical confidence
- 5. Decision: Implement winner or iterate
๐ What to Test
High Impact
- โข Headlines and value props
- โข CTA buttons (text, color, placement)
- โข Pricing display
- โข Form fields
Medium Impact
- โข Images and videos
- โข Social proof placement
- โข Navigation structure
- โข Page layout
๐ Test Documentation Template
Test Name: [Descriptive name] Hypothesis: We believe [change] will [outcome] because [reason] Metrics: Primary: [CVR] | Secondary: [Bounce rate, Time on page] Variants: Control: [current] | Variant A: [change] Traffic: [%] split | Sample size: [number] Duration: [Start date] to [End date] Results: Control: [metrics] | Variant: [metrics] Winner: [Control/Variant] | Confidence: [%] Next Steps: [Implement/Iterate/Abandon]
Developer Ticket Templates
๐ซ Performance Optimization Ticket
Title: [PERF] Optimize LCP on [Page Name] Current State: - LCP: [X]s (Target: <2.5s) - Largest element: [element description] - PageSpeed Score: [score] Tasks: [ ] Preload hero image with <link rel="preload"> [ ] Convert images to WebP format [ ] Implement lazy loading for below-fold images [ ] Inline critical CSS [ ] Remove unused JavaScript Acceptance Criteria: - LCP < 2.5s on mobile (3G) - PageSpeed score > 90 - No visual regression Testing: - Chrome DevTools Performance audit - PageSpeed Insights (mobile & desktop) - Cross-browser testing (Chrome, Safari, Firefox)
๐ซ UX Improvement Ticket
Title: [UX] Improve Mobile Navigation Problem: - Users can't easily navigate on mobile - Hamburger menu has low engagement - Key pages are 3+ taps away Solution: [ ] Implement sticky bottom navigation [ ] Add search functionality [ ] Create quick access menu for top pages [ ] Improve menu animation (< 300ms) Design: - Figma: [link to design] - Breakpoint: < 768px Acceptance Criteria: - Navigation accessible with thumb - All pages reachable in โค 2 taps - Animation smooth (60fps) - Meets WCAG 2.1 AA standards
๐ซ A/B Test Implementation Ticket
Title: [TEST] CTA Button Color Test Hypothesis: Changing CTA from blue to green will increase CTR by 15% Implementation: [ ] Set up test in Google Optimize/VWO [ ] Create variant with green button (#00B67A) [ ] Configure 50/50 traffic split [ ] Set up event tracking for clicks [ ] QA both variants Tracking: - Event: button_click - Label: [control/variant] - Goal: form_submission Duration: 14 days Sample size: 2000 per variant Rollback Plan: If negative impact > 10%, revert immediately
Performance Monitoring
๐ Weekly Performance Review
Monday: Baseline Check
Run PageSpeed Insights on top 10 pages
Wednesday: RUM Review
Check Core Web Vitals in GA4
Friday: Test Results
Review A/B tests and make decisions
Quick Wins Checklist
๐ Immediate Impact (< 1 day)
- โก Enable text compression (gzip/brotli)
- โก Set up browser caching headers
- โก Minify CSS and JavaScript
- โก Remove unused plugins/scripts
- โก Optimize favicon and app icons
โก Week 1 Improvements
- โก Implement lazy loading
- โก Convert images to next-gen formats
- โก Set up CDN
- โก Add resource hints (preconnect, dns-prefetch)
- โก Implement critical CSS
Tools and Resources
๐
Analytics
GA4, GTM
๐
Performance
PageSpeed, WebPageTest
๐งช
Testing
Optimize, VWO
๐ฅ
Heatmaps
Hotjar, Clarity
Ready to Optimize?
Transform your website into a high-performance conversion machine. Contact henry@primechasedata.com to start your optimization journey.