---
schema_version: "1"
id: ceffc188d42b52994c3bc236558c3b871ee39ce8762d55540c8f5a622d8b8e26
title: Lazy Load Page Components
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/best-practices/best-practices-performance/pages-best-practices-perf-lazy-load.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-best-practices-perf-lazy-load.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 75bef471c5afc81eaf0034a24d4029711ac470aa169294be731073c0da950556
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Lazy Load Page Components

To reduce or delay expensive calculations, use lazy loading. With lazy loading, a page loads its essential components first and delays the other features until the user performs an action that requires the information. This technique gives users faster access to essential features and makes a large page appear more responsive, even though the entire page takes the same total time to load.

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.

**See Also**  


-   [Implement Partial Page Updates with Command Links and Buttons](https://developer.salesforce.com/docs/platform/quick-start/pages-quick-start-ajax-partial-page-updates.md)
-   [JavaScript Remoting for Apex Controllers](https://developer.salesforce.com/docs/platform/javascript/pages-js-remoting.md)

