Open leepeuker opened 1 year ago
Would this mean that the dashboard row data would only be loaded when the user unfolds / extends the row?
Yeah good question. I was thinking to still keep it in the backend, so only to remove the data for the rows wich are not rendered.
We could move the data fetching into js frontend, but that would mean we have to render the html in the frontend too. This would probably the the best thing to do, but requires the most change effort.
It shouldn't be that difficult right?
Just add an event listener to check whether the user has extended the rows and if yes, add a loading spinner and make a POST request in the background to the backend, to fetch the data. When the data has arrived, remove the spinner and manipulate the DOM to inject the requested data.
I did not say that it is difficult, but it takes time
Currently when loading the dashboard we are fetching the data for all possible dashboard rows regardless of which rows are really shown in the frontend.
Loading all rows immediately improves loading times during dashboard usage