I've two tabs on a webpage. When a user switches the tab, it displays its respective layout and it performs some tasks. If a user switches the tab back to one then it becomes slow and it is very visible on the webpage.
So, how can I stop any processing of the respective tab if a user switches tab very quickly?
Rahul Bisht
web developer
i've dashboard & document tab. when user goes to document tab, it loads a tree and when user clicks on the element of tree, an ajax request is made to load the necessary data from server & it takes some time to load the content. in the mean while if user switch to dashboard tab, i want all the operations from document tab to stop & stop loading data into DOM.