World Congress 2024

How writing just one import the wrong way slows down your website

July 19, 2024 13:20 – 13:30 · 10 min Airstream (120)

What this session covers

Tree shaking is a feature that is used by modern bundlers to keep bundle size down (and load times fast), but if just one import is written in a non-optimal way, this can result in the whole dependency being included in the bundle. In some cases, this even happens with automatically suggested imports by the IDE. Learn about the correct way of importing from dependencies, tricks you can use to easily determine the impact on bundle size, and why having a lot of dependencies may not be as bad as you think!

World Congress 2024

Related talks

Open session

Tree Shaking the Bytes Away

  • Francesco Novy

    Senior Software Engineer @ Sentry

Open session

Common Mistakes in Vue.js and How to Avoid Them

  • danielkellyio

    Lead Intructor at Vue School

Open session

Oh CommonJS! Why are you mESMing with me?

  • Jolo

    Fullstack developer with a knack for whipping up code recipes using my secret ingredients: a dash of JavaScript, a pinch of Python, and a whole lot of serverless magic

Open session

It's not only about the footprint

  • Carsten Windler

    Principal Engineer @ Plan A

All sessions at this congress