Plotly does'nt work with large data in Shiny

Hello,

I am confronted with a problem with plotly. The flyover is rowing extremely on large dataset. When I use a small dataset, everything works perfectly. But as soon as I apply the same code to a large dataset, my program takes a long time to load and crashes at a given time. Could someone please help me?