How to make a Plotly plot more responsive? (lower delay when resizing the container)


There currently is a 1-second delay between the time a container div is resized and the time the plot is resized: live demo.
How to reduce this time?

Is it possible to make the plot automatically match the div width, with high FPS? (maybe even without using Javascript, but just by letting CSS rules do the work?)

Example with an image container: live demo : resizing the image container results in a very smooth resizing.

How to do this similarly in Plotly?

Thanks for your ideas!