Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Lazy Load Page Components
To lazy load parts of a Visualforce page, use the following techniques:
- Use the rerender attribute on Visualforce components to update the component without updating the entire page.
- Use JavaScript remoting to call functions in your controller and to retrieve ancillary or static data.
- Create a custom component to show and hide data according to user actions.
When you lazy load a page, consider the number of users and the amount of data you expect the page to use. Watch out for limits such as the concurrent API call limit. For example, if a navigation tree only loads elements as needed, the number of queries can end up out of proportion to the data.