TLDR Dev · ARTICLES & TUTORIALS
HOW WE MADE CLARITY.JS 4.5% SMALLER WITHOUT SACRIFICING COMPATIBILITY
Summary from the TLDR Dev newsletter
Microsoft reduced clarity.js by 1,257 gzip bytes through more than 50 automated change, build, measure, and test experiments. Named imports and minifier settings delivered savings, while extracting small helpers sometimes increased compressed size. A larger saving from modern JavaScript output could not ship because native async functions would break Angular sites that depend on Zone.js.