Tabs ClientSide load query

Tabs ClientSide load query

  
Hi.Now i have all queries in preparation but it takes too much time.What i want to do is just when i switch to another tab load the query of the table records inside the tab clicked.How to do that without late load?