Glossary

Tree Shaking

A build optimization that eliminates unused code from JavaScript bundles to reduce file size.

What is Tree Shaking?

Tree shaking is a form of dead code elimination that removes unused exports from JavaScript bundles. Modern bundlers like webpack and Rollup perform tree shaking automatically.

Key Takeaways

  • 1.Tree Shaking is important for website performance and SEO.
  • 2.You can measure it using tools like BulkAudit and Google Lighthouse.
  • 3.Improving this metric can lead to better user experience and search rankings.

Learn More

Browse Full Glossary

Explore all SEO and web performance terms

Test Your Tree Shaking Score

Use BulkAudit to measure tree shaking and other key metrics for your website.