SpinTheMic
Pro

Interview practice question

A large library is used for one small function

Frontend Engineering · Web Performance · Beginner

You discover the app imports a huge utility library just to use one function. What would you do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Check bundle analyser impact.
  • Import only the function (modular import).
  • Replace with native JS or small package.
  • Ensure tree shaking works.
  • Prevent with lint/size checks.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics