Salesforce
PDII · Question #397
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?
The correct answer is C. Use lazy loading to load the data on demand, instead of the controller's constructor. See the full explanation below for the reasoning.
Question
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?
Options
- AUse Javascript to move data processing to the browser instead of the controller.
- BUse the transient keywords for the List variables used in the custom controller.
- CUse lazy loading to load the data on demand, instead of the controller's constructor.
- DUse an apex:actionPoller in the page to load all of the data asynchronously.
How the community answered
(50 responses)- A6% (3)
- B2% (1)
- C84% (42)
- D8% (4)
Community Discussion
No community discussion yet for this question.