As soon as Lightning Web Runtime was officially announced at Salesforce’s annual Dreamforce 2021, it was hailed as revolutionary for Salesforce developers, because it changed the way of building portals, websites and microsites on Salesforce.   

In this article, we’ll dive into what Lightning Web Runtime is, why it’s been such a game-changer, and what benefits it brings. 

What is Lightning Web Runtime (LWR)? 

Lightning Web Runtime is a platform that allows developers to build webstores on Salesforce using the same tools or frameworks they use to build other web applications, such as React, Vue Js. and Angular.  In other words, developers can use their existing skills to build apps on Salesforce. It significantly speeds up the development time. 

What are the benefits of Lightning Web Runtime? 

Better website performance 

LWR allows for creating high-speed websites with <1s page load time. It leverages browser catching and reducing network latency. Thanks to that, web applications are fast and responsive, positively impacting user experience.  

It speeds up developers’ work 

With the Build Your Own template, developers can create a flawless experience using any design system and custom, reusable, drag-and-drop components. There are various customisation options, including the number of columns in a row, column spacing, content width, etc.   

Security 

LWR provides a secure runtime environment for web applications. The data is protected from unauthorised access and meets Salesforce security standards.  

Flexibility 

LWR gives control and flexibility when building a website or application. Developers can deploy on runtime environments ranging from local Node.js runtime to a standalone instance in Heroku. 

How to level up your webstore using Lightning Web Runtime? 

1. Determine your needs 

Start with identifying the areas of your webstore that could benefit from LWR. Perhaps the interface or performance could be improved or you’d like to add new features? 

2. Pick the components and customise them 

Based on your needs, choose the right LWC components to build your webstore with and customise them according to your preferences, brand guidelines, etc.  

3. Build the app 

The LWR Developer Console provides a development environment, where the components can be created and edited.  

4. Test the app 

You can also use the LWR Developer Console as a testing environment to check if each component as well as the webstore as a whole work as intended. 

5. Deploy, monitor and analyse 

Once your app is deployed you can use the LWR’s performance optimisation tools to find and fix any performance issues if necessary.  

Lightning Web Runtime implementation example

Leverage the power of Lightning Web Runtime 

If you want to build high-performing ecommerce websites that can be developed quickly, are secure and easy to scale, Lightning Web Runtime is the best solution. Contact us to consult your idea, and we’ll show you how we can use Lightning Web Runtime to its full potential in your project.  

About the author

Michał Gronowski

Michal Gronowski

Head of Salesforce