Loading

Measure lightning page load times

게시 일자: Oct 13, 2022
상세 설명
When using the Lightning Experience, there are some best practices to consider when measuring the time it takes for individual lightning pages to load.

It it important that the Lightning Framework bootstrap process (the page where the Salesforce release animation is displayed) is not included in measurements. If you reload the browser tab manually, the Lightning Framework is reloaded before any individual lightning page is loaded and including the load time from this process can result in inaccurate load times being measured. Additionally, open-source testing applications such as Google's Lighthouse extension will force a full reload of the page in their analysis, which will force the Framework to reload.
솔루션
There are two ways that you can enable a load time counter directly in the Lightning interface:
This setting adds a counter in the top right corner of the Lightning interface that shows page load time and bandwidth. It is important to note that with this setting enabled component code is not minified so overall performance may be impacted. 
  • Adding ?eptVisible=1 to the Lightning URL
Ex: https://<example>.lightning.force.com/one/one.app?eptVisible=1

Adding this string to your URL in the Address Bar will add a counter similar to the above Lightning Component Debug Mode for showing the page load time, but does not obfuscate component code so there is less of an impact on performance load time.

To ensure accurate load times are displayed you should not open pages in a new tab or perform a manual reload of the page to avoid measuring the Lightning Framework bootstrap as part of the page load time.

If you are experiencing longer than expected page load times, a useful resource is the Lightning Component Inspector extension available for Google Chrome that helps to identify component creation time and bottlenecks.
Knowledge 기사 번호

000382041

 
로드 중
Salesforce Help | Article