Lazy loading for ggplotly in R

Dear Plotly community members,

I am using the ggplotly function in R which automatically converts ggplot objects to a plotly object. Specifically, I include these plots in a self-contained Markdown/Quarto HTML document. As I’m including many such plots the HTML file loads quite slowly (sometimes 30 seconds).

Does there exist a way to activate lazy loading for the plotly charts that I generate using the ggplotly function?

Thank you for any suggestions!