Salesforce’s Lightning experience has so much going for it – the design, the feel, the look, etc. Unfortunately one of the most noticeable downsides, once users make the permanent switch, is the load times. Lightning pages simply don’t load as quickly as users would like, nor as fast as they did in Classic. Luckily, Salesforce has introduced a new feature to help Orgs to review their lightning pages & make them more efficient than ever. That feature is the “Analyze” button which is now available on your lightning page builder.
The Analyze button will allow you to discover ways to make your record page perform better based on analysis right inside the Lightning App Builder. Performance Analysis in App Builder evaluates the fields, instances of the Related Lists component, and metadata of a record page. With the click of a button, get best practices and suggestions for improving page performance and the end-user experience.
Additionally, the Analyze button will show load times for your layout on both your desktop and mobile. The display will also provide links to additional information on tips to improve your lightning page performance. Here is an example of what the display will look like:
We’ve also included some of the best tips to help improve your Lightning Page layouts:
· Place the Details component in a secondary tab (not the default tab)
· Reduce the number of fields displayed in the details component; if using custom objects consider using Dynamic Forms
· Break up the page using tabs; only the default tab is loaded initially and additional tabs are rendered when selected
· If your page has many related lists, consider placing the Related List component in a secondary tab (not the default tab)
· If both Details and Related Lists render slowly, consider creating an initial default tab with 1 or 2 important Related List – Single components or Quick Links
· Reducing the number of related lists to 3 per tab will improve performance
· Move non-essential components such as News and Twitter into separate tabs
· Remove any duplicate components
· Use component visibility to only display components relevant to each user
· Improve mobile performance by reducing the number of visible components to 8 or fewer; components can be hidden from the mobile from the Lightning App Builder