How is the Order of execution of a Visualforce page determined?

How is the Order of execution of a Visualforce page determined?

To fully understand the order of execution of elements on a Visualforce page, you must first understand the page’s lifecycle –that is, how the page is created and destroyed during the course of a user session. The lifecycle of a page is determined not just by the content of the page, but also by how the page was requested.

When to make a GET request in Visualforce?

A get request is an initial request for a page either made when a user enters an URL or when a link or button is clicked that takes the user to a new page. The following diagram shows how a Visualforce page interacts with a controller extension or a custom controller class during a get request:

When to make a postback request in Visualforce?

When a postback request is made, the view state is maintained. If the user interaction requires a page update, such as when the user clicks a Save button that triggers a save action, a postback request is made. For more information on postback requests, see Order of Execution for Visualforce Page Postback Requests.

What’s the maximum response size for a Visualforce page?

The maximum response size from a Visualforce page request must be below 15 MB. Sorry, the document you are looking for doesn’t exist or could not be retrieved.

How to improve page load times in Visualforce?

To improve Visualforce page load times: Cache any data that is frequently accessed, such as icon graphics. Avoid SOQL queries in your Apex controller getter methods. Limiting the data coming back from SOQL calls in your Apex controllers. For example, using AND statements in your WHERE clause, or removing null results

What should the state size of Visualforce pages be?

The view state size of your Visualforce pages must be under 170KB. By reducing your view state size, your pages can load quicker and stall less often. Use the transient keyword in your Apex controllers for variables that aren’t essential for maintaining state and aren’t necessary during page refreshes.

How big is the developer console in Salesforce?

You’ve used the Developer Console to step through the request and determine which items in the request used the most system resources. For more information, see “Developer Console Functionality” in the Salesforce Help. The view state size of your Visualforce pages must be under 170KB.