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 a week ago


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.


  • Visualforce pages

  • Visualforce components

See also

Did this answer your question?