Is it possible to compress Plotly graphs when we export them as HTML?

Hello,

I want to export a graph that I made with Plotly (on R) by saving it as Web Page.

My graph is very heavy (because I use a select button for 1000 values), the size of my HTML is 21Mo.

The developer who is trying to import it on the website is asking me whether I can compress it while exporting it.

Do you know if it’s possible on RStudio ? Or another way ?