function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Erica CoxErica Cox 

Visualforce page taking long time to load, but loads immediately upon refresh

The home page for our app (custom VF) sometimes churns for over 15 minutes without loading.  If the user refreshes the page, it loads immediately.  This has just been reported in the last few weeks, despite no changes to the page.
sfdcdevsfdcdev
You need to find out the causes behind the performance degradation of the page.It's hard to tell without looking at code and debugging the code using developer console.I would suggest you to visit the following link and apply the different techniques discussed in the document to debug your code:

https://developer.salesforce.com/docs/atlas.en-us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/