News for hackers. Stuff that matters.
Re:JavaScript import maps are now supported cross-browser by paulddraper on Thursday May 04, 2023 @02:05AM (#35811745)
If you do that:

(1) Dependency chains will cause perf slowdowns due to round-trip latency.

(2) Lack of tree shaking will yield larger downloads.

(3) Gzip obviates a lot of the benefit of minification, but not all.

---

Simply put, if you care about performance, you need a performance optimizing step, and always will.

Re:JavaScript import maps are now supported cross-browser by cxr on Thursday May 04, 2023 @10:07AM (#35815541)
> Lack of tree shaking will yield larger downloads

... assuming all other things kept equal. Observations show, however, that development practices most commonly associated with (and promoted by) the dev cohort that reflexively reach for this type of tooling just end up with ballooning app sizes anyway (and usually with more jank and less responsiveness on the user end, too). A tool/method/process that delivers a shrink in the range of 10% after 10x bloating still loses when more thoughtful tool/dependency use (or lack thereof) will tend to just sidestep those problems entirely.