# Frontend performance

> How many kilobytes does a convenience cost the visitor?

- Status: Open
- Record count: 1
- Source: https://www.muhammetsafak.com.tr/en/research/program/arayuz-performans/
- Language: en-US
- Author: Muhammet Şafak

---
Shipped JS, first paint and interaction delay: how many kilobytes a convenience costs the visitor, browser support included.

## Findings ledger

### How you import Chart.js decides how many kilobytes the visitor downloads

- Question: In a real production build, what is the difference between `chart.js/auto` and a selective `Chart.register()` — in kilobytes?
- Finding: Selective registration saves 9.7 kB gzip over `chart.js/auto` (67.8 → 58.1 kB, 14.3%). The larger drop is not in the library core but in leaving unused controllers out: a page that registers only the bar chart falls to 46.0 kB — two thirds of auto.
- https://www.muhammetsafak.com.tr/en/research/chartjs-import-strategy/
- Markdown: https://www.muhammetsafak.com.tr/en/research/chartjs-import-strategy.md
