Skip to main content
Visualforce view state optimization

Keep the size of the Visualforce view state lean, in order to minimize loading times and avoid hitting governor limits.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over 6 years ago

Rationale

Using multiple apex:form in your page or component causes multiple instances of the view state to be created for your page or component, making it much more likely to hit view state limits.

Scope

  • Visualforce pages

  • Visualforce components

See also

Did this answer your question?