10up/Engineering-Best-Practices

Only load libraries you need has outdated info

TylerBarnes opened this issue · 0 comments

https://10up.github.io/Engineering-Best-Practices/javascript/#performance

Under the only load libraries you need section, the React file sizes are outdated.
Current sizes are 8.5k for React and 109.7k for React DOM for the latest versions.
Combined and gzipped they're 35.6k which is just 13k bigger than vue.

I was going to open a pull request here to update that but maybe it's better to replace React with another large & commonly used library instead? Or replace that section with a paragraph about performance budgeting?

https://bundlephobia.com/result?p=react@16.8.6
https://bundlephobia.com/result?p=react-dom@16.8.6
https://bundlephobia.com/result?p=vue@2.6.10