I am looking for a way to detect when the plots in a Shiny dashboard tab have finished rendering so that I can hide a loading page element. Currently, I am using the following code:
observeEvent("plot", hide(id = "loading-content", anim = TRUE, animType = "fade"))
The issue is that the hiding of the loading page occurs as soon as the calculations are done, rather than waiting for the plot to be fully rendered. This becomes problematic with multi-tab dashboards that I am currently developing.
Is there an event or trigger that I can use to wait until all the plots in a tab are completely rendered before hiding the loading page? Essentially, something like a web browser notifying R that the plot rendering process is complete.