logoalt Hacker News

maxlohtoday at 5:19 AM2 repliesview on HN

Even after migrating to ES modules, jQuery is still somewhat bloated. It is 27 kB (minified + gzipped) [0]. In comparison, Preact is only 4.7 kB [1].

[0]: https://bundlephobia.com/package/[email protected]

[1]: https://bundlephobia.com/package/[email protected]


Replies

topspintoday at 9:02 AM

> Preact is only 4.7 kB

Is there some outlier place where people using virtual DOM frameworks don't also include 100-200kb of "ecosystem" in addition to the framework?

I suppose anything is possible, but I've never actually seen it. I have seen jQuery only sites. You get a lot for ~27kB.

show 1 reply
onion2ktoday at 5:41 AM

jQuery does a lot more though, and includes support older browsers.

show 2 replies