Experienced Page Time in Salesforce

ย
You might have seen this green box with some values displaying at the top of your sandbox org, but are you really aware what is it(EPT) and what is it used for? ๐ง
Experienced Page Time (EPT) is how Salesforce measures the time it takes to download and display the entire content of a webpage in a browser window. ๐ ๐ ๐
Ever wondered how long it takes for a Lightning Experience page to fully load and display? Salesforce’s Experienced Page Time (EPT) helps measure exactly that! ๐
EPT is measured as the time from the page start to when no more activity occurs for at least two frames (~33 ms). The two extra frames help to avoid false positives due to asynchronous calls. These calls include any XMLHttpRequests (XHRs) activity, any storage activity, or any user interaction or client-side work of any kind in the main JavaScript thread. Read here
๐ Why is EPT important? It gives insights into page load times, helping admins and developers enhance the user experience in Salesforce.
Ways to enable EPT monitoring in Lightning Experience
๐ Here are two simple ways to enable EPT monitoring in Lightning Experience:
1๏ธโฃ ๐๐ง๐๐๐ฅ๐ ๐๐ข๐ ๐ก๐ญ๐ง๐ข๐ง๐ ๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ ๐๐๐๐ฎ๐ ๐๐จ๐๐
- Go to Setup and enable Lightning Component Debug Mode.
- Adds a counter to the header showing page load time and network bandwidth.
โ ๏ธ Note: This can slightly impact performance as component code isn’t minified and caching is disabled.
2๏ธโฃ ๐๐จ๐๐ข๐๐ฒ ๐ญ๐ก๐ ๐๐๐
- Add
?๐ฆ๐ฑ๐ต๐๐ช๐ด๐ช๐ฃ๐ญ๐ฆ=1
to the end of your Lightning Experience URL. - This shows the page load time counter in the header (but not network bandwidth).
๐ก Unlike enabling Lightning Component Debug Mode, the component code is minified and there will be less impact on performance time.
Few Things to remember
- โ ๏ธ Avoid opening pages in a new tab or manually reloading them, as this includes the Lightning Framework bootstrap in the measurement, leading to skewed results.
- ๐ก These simple tweaks can give you actionable insights to optimize performance in your Salesforce org.
๐ก Aim for a low EPT! Itโs a sign of optimized performance and a well-tuned Salesforce environment.
SF documentation on Experienced Page Time
This Content was originally posted in linkedin View Post