The performance of a Visualforce page is a key factor to consider in development because performance is a reason that effects the end user's satisfaction of the application. The following are the best practices to improve Visualforce's performance:
Use only one
<apex:form>
tag per Visualforce page because each<apex:form>
tag adds a view state to the page. A Visualforce page has a limit for view state size that is 135 KB. We can decrease the loading time of a Visualforce page by reducing the view state size.Try to use the transient keyword in custom controller as much as possible. The state is not maintained for transient instance variables. If a particular instance is used only in the page request, then it must not be a part of view state. It will help to reduce the view state size.
When using an SOQL query to refer data of a particular object, use only the relevant data in the SOQL query.
When designing the Visualforce page, do not overload...