A candid, implementation-tested guide to Lightning Web Runtime. Learn what the marketing doesn't tell you about limitations, migration challenges, and when LWR is the right choice.
Lightning Web Runtime is Salesforce's next-generation framework for building Experience Cloud sites. According to the official Salesforce developer documentation, unlike Aura-based sites that render components dynamically at runtime, LWR takes a fundamentally different approach by pre-compiling and caching static content during the publish process.
Through static content delivery and CDN caching, LWR delivers significantly faster page loads than Aura sites.
Built on modern web technologies (HTML, JavaScript, CSS) without proprietary abstractions.
Uses Lightning Web Security (LWS) instead of Lightning Locker for better component isolation.
All new Experience Cloud features and enhancements will be built exclusively for LWR.
The fundamental architectural difference between Aura and LWR lies in when content is generated. The Trailhead module on LWR explains this comprehensively:
| Aspect | Aura Sites | LWR Sites |
|---|---|---|
| Rendering | Dynamic at runtime | Pre-compiled at publish time |
| Component Changes | Immediate (no republish needed) | Requires republishing |
| Caching | Limited server-side caching | Aggressive CDN caching |
| Content Delivery | Server-generated per request | Static files from CDN edge |
| Security Model | Lightning Locker | Lightning Web Security (LWS) |
When you publish an LWR site, Salesforce essentially takes a "snapshot" of your codebase. The framework, components, and UI layer are compiled into static, immutable, and cacheable resources stored in Salesforce's CDN. Every time you change an LWC component, you must republish for changes to take effect.
The performance gains in LWR are real and measurable, stemming from several architectural decisions documented in the Salesforce Help article on LWR basics:
If you end up building 10+ custom components as workarounds for missing LWR functionality, your "faster" LWR site may not be faster at all. Page performance is ultimately the combined performance of all components, and custom components often can't match the optimization of standard components.
This is where marketing diverges from reality. Based on real-world implementation experiences with enterprise deployments (78,000+ members, 120+ audience segments), here are the limitations that will impact your architecture decisions. The official LWR limitations documentation covers some of these:
Unlike Aura templates, LWR has no generic record pages. This means:
Aura's robust audience targeting system is replaced by "Visibility Rules" in LWR, which is significantly more limited. The Salesforce Help article on visibility rules explains the available options:
| Feature | Aura Audiences | LWR Visibility |
|---|---|---|
| Starting Point | User, Profile, Domain, Custom Permissions, Audiences | User records, Contact fields, Account fields only |
| Rule Reusability | Can reuse across components | Must rebuild from scratch for each component |
| Profile-based Rules | Supported | Not directly supported |
| Custom Permissions | Supported | Not supported |
| Domain-based Rules | Supported | Not supported |
Organizations with complex audience segmentation (100+ audiences) face significant challenges. You cannot simply reference existing visibility rules for new components - each rule must be configured from scratch.
In Aura, you could create multiple variations of a page for different audiences. In LWR, there are no page variations.
This is a significant limitation that affects dynamic record navigation:
{!User.FirstName} work for component contentsfdc_cms__styles folder in DigitalExperienceBundle metadata--dxp styling hooks for consistent brandingThe most significant migration effort involves components. According to the Salesforce migration considerations guide:
/s/ URL segment by defaultLWR sites support up to 500 routes (unique URLs). For optimal performance, keep routes below 250. Use dynamic content instead of creating individual pages for each content item.
"To be honest, if I were a customer with the experience I have now, I wouldn't recommend switching to LWR right now. It's super early. It's a fresh product. It's not fully ready for complex enterprise use cases. My recommendation: please wait until LWR is more mature and feature-complete."
- Enterprise Implementation Team FeedbackImplement a custom visibility solution:
lightning/navigation APIDevelop a reusable component library:
These custom components can be leveraged across multiple projects, turning limitations into opportunities for reusable assets and accelerators.
Before committing to LWR migration:
Budget for building custom components to replace missing functionality:
For large existing sites, as recommended by LaunchPad Lab's migration guide:
Salesforce enhances LWR with each release. Key recent improvements from the Salesforce Release Notes:
Create an Architecture Decision Record (ADR) documenting:
LWR represents the future of Salesforce Experience Cloud. The performance benefits are real, and all new platform enhancements will target LWR. However, don't let marketing hype drive technical decisions. Conduct honest assessments, understand the limitations, plan for custom development, and make informed decisions based on your organization's specific requirements.
This analysis is based on official Salesforce documentation and real-world implementation experiences from enterprise Experience Cloud deployments.
Contact Me for Consultation