How to stop queries in different tabs from running on page load

I have multiple tabs for my screen which all have different queries tied to them. I have a few queries that start loading when I open the page, however these queries are tied to different tabs that are not the tab I am currently on. How can I disable queries that are outside the current tab that I am on and only have the respective queries run for the current tab? Thanks

Probably you want to tie a Change event trigger on the tabContainer you are using to trigger a JSQuery which then looks at the currently selected tab as a switch case and runs the appropriate queries from there.

1 Like

Hi there! Thanks for sharing, @pyrrho

There's a few ways to control when queries are triggered.

-You could use a JS query, as described above

-You could have conditional event handlers

-You can conditionally disable automatic queries (all methods are discussed here)