Dev.to
6/23/2026

An AI Built My WordPress Theme. Then I Found the Performance Bugs It Left Behind.
Short summary
An AI-generated WordPress theme launched with perfect scores but dropped from 100 to 89 on mobile because the AI marked a below-the-fold image as high-priority based on source order, lacking visual awareness of the layout. The fix required human review of fetchpriority attributes, cache purging, and viewport-aware asset delivery. This demonstrates that AI code needs structural validation for layout assumptions before shipping.
- •AI-generated code was valid but made wrong assumptions about asset priority and layout hierarchy
- •Mobile Lighthouse dropped 100→89 due to below-the-fold image marked high-priority by source order
- •Requires human review of fetchpriority, cache isolation, and viewport-aware optimization
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



