Wordloads in Onepage App

Hi Guys, I have a question.

When dealing with a onepage app that displays multiple repeating groups database searches - on load of the page, does this mean that each one triggers/that all the searches trigger workloads each time - to display data for each table listed?

Just to put into context, each repeating group on the single page/one page app is only displaying when the left hand navigation link sets the custom state.

Each group containing the repeating group, that performs a database search, is always hidden and only displays when the custom state is set for each group.

If left as is, will the workloads trigger each time the onepage loads, or only when the navigation custom state is clicked to expose the group that contains the repeating group that performs the search?

As an immediate solution, I have set a condition on each repeating group to not search of the custom state is NOT the custom state that exposes that repeating group.

Any feedback would be great and much appreciated.

Thanks.

Hidden elements’ HTML is downloaded at page load, but they aren’t rendered nor its required data is retrieved until shown on screen.

So, no need to worry about WU spent as long as the element hasn’t been displayed yet.

Hi Ade,

Thanks for help.

To be safe I also added condition - when custom state is not (the one set for each group containing resisting group) data source = empty. :slight_smile:

Just to be safe. That way it can only render when custom state that exposes the repeating group is set.

Thanks.