Loading spinner for tables. #1932
-
Is there a current pattern for when a table loads. In this example I'm imagining a user clicking on the pagination - should the pagination button house the spinner of the table area itself? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Not from DSYS, but we've recently used the skeleton loader for loading a table which might also work for you. |
Beta Was this translation helpful? Give feedback.
-
Hi, super good question that we haven't really though about honestly. As @PoojMenon mentions the skeleton loader is one option for showing a table in a loading state. Though, I potentially think it's better left to only be used on initial load of the table, for the first time. Switching between data and skeletons between table pages might cause too much reflow of the page and just not feel very nice. Especially if the latency or subsequent load times are low, it will feel pretty jolty. The loading state of the pagination control, if it is a button, is an interesting option we might look to explore. It is interesting to me that we chose not to use the button component underneath, as that comes with a loading state out of the box and would solve this pretty easily. I'll take it back to the team, and likely create a Jira ticket for it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi, super good question that we haven't really though about honestly.
As @PoojMenon mentions the skeleton loader is one option for showing a table in a loading state. Though, I potentially think it's better left to only be used on initial load of the table, for the first time. Switching between data and skeletons between table pages might cause too much reflow of the page and just not feel very nice. Especially if the latency or subsequent load times are low, it will feel pretty jolty.
The loading state of the pagination control, if it is a button, is an interesting option we might look to explore. It is interesting to me that we chose not to use the button component underneath, as that c…