title: How to speed up rendering a plotly charts?
body: <p>I am currently preparing a shiny app that shows demographics for my country. I am using the plotly package for data visualization. All the graphs are great, but the problem is that they render very slowly. That is, when I start the application, I have to wait about 30 seconds for the graphs to appear on the screen. Is there any way to speed up the rendering of the graphs and make them appear on the screen much faster? I think the maximum delay can be 2-3 seconds, I wouldn't want more. I have a 8 or 9 graphs per page so honestly, I don't want to believe that the R language and the plotly package that are designed for data visualization work so poorly with such a number of graphs, so I'm considering some mistakes on my own. I found this guide: <a href="https://plotly-r.com/performance.html" rel="nofollow noreferrer">https://plotly-r.com/performance.html</a>
  however, the first way <code>toWebGL ()</code> doesn't work at all, and using the second function <code>partial_bundle ()</code> I have the impression that the graphs render even slower. So, are there any other ways to speed up the rendering of the graphs? What errors should I watch out for in the code so as not to slow down the rendering of the graphs?  I will be grateful for all tips, advice, and in particular for suggestions to solve the problem.</p>
  <p>The problem seems general to me, so I do not add my code, but if necessary I will of course add it</p>
  <p>Thanks in advance!</p>