chartjs / chartjs-plugin-deferred

Chart.js plugin to defer initial chart updates
https://chartjs-plugin-deferred.netlify.app/
MIT License
108 stars 21 forks source link

Question about performance #17

Closed ekerstein closed 3 years ago

ekerstein commented 3 years ago

Does this library help the performance of a page, or is it more about deferring animation for better user experience?

I have a page with lots of charts on it and I'm wondering if it would load faster if I use this plugin to defer the initial chart updates until the user scrolls down.

BR0kEN- commented 3 years ago

Does this library help the performance of a page?

Depends on what you call performance.

is it more about deferring animation for better user experience?

It is definitely for that.

would it load faster if I use this plugin to defer the initial chart updates until the user scrolls down?

It would not load faster but decrease a screen freeze seen when multiple charts render at once. Treat it as lazy loading.