function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stefaan Somers 12Stefaan Somers 12 

Lightning accordion lazy loading

I have a lighting page with 2 columns.

First column :
Accordion

Second Column :
Tabs

I've been using Lighting Inspector in Chrom to see what happens.
From the inputer there I can conclude that te default tab of the second column only loads after all the different sections of the accordions are loaded.

Is this a correct conclusion? And if so what is the easiest way to resolve this. Is there a way to define which component loads first
AbhishekAbhishek (Salesforce Developers) 
Hi,

In lightning dataTable there is a code sample for infinite loading. Heading as given below 

Using Infinite Scrolling to Load More Rows

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_datatable.htm

This will help you

For your reference,

https://salesforce.stackexchange.com/questions/176507/what-are-the-best-ways-to-achieve-lazy-load-in-lightning-components

https://forcerangers.wordpress.com/2018/06/20/lazyloading/


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks!
{tushar-sharma}{tushar-sharma}
While we have this feature available in community: https://help.salesforce.com/articleView?id=community_builder_prioritization_howto.htm&type=5 (https://help.salesforce.com/articleView?id=community_builder_prioritization_howto.htm&type=5)

We don't have similar feature available in lightning experience. As suggested by others you can switch to some other options which include datatable (https://newstechnologystuff.com/2019/01/01/lightning-datatable-lazy-loading-with-inline-editing-and-actions/) which supports lazy loading. So you will only load data when its required.

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/