| ▲ | maxloh 8 hours ago |
| 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/jquery@4.0.0 [1]: https://bundlephobia.com/package/preact@10.28.2 |
|
| ▲ | topspin 4 hours ago | parent | next [-] |
| > 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. |
| |
| ▲ | ttoinou an hour ago | parent | next [-] | | Look at Deno + Fresh which is based on preact. You can do a lot with preact only | |
| ▲ | downsplat 3 hours ago | parent | prev [-] | | I do that when I need to make a simple SPA. Plain Vue plus a few tiny add-ons of my own. |
|
|
| ▲ | onion2k 7 hours ago | parent | prev [-] |
| jQuery does a lot more though, and includes support older browsers. |
| |
| ▲ | halapro 5 hours ago | parent | next [-] | | > includes support older browsers Which is entirely the issue. Supporting a browser for the 10 users who will update jQuery in 2025 is insane. | | |
| ▲ | mejutoco 4 hours ago | parent | next [-] | | Breaking backwards compatibility to turn 27kb into less because of "bloat" makes less sense to me. | |
| ▲ | shevy-java 4 hours ago | parent | prev [-] | | It is definitely more than 10 users. |
| |
| ▲ | ZeroAurora 4 hours ago | parent | prev [-] | | Officially they state they only support 2 latest versions of chrome. But considering their support of IE11, that's actually a lot. |
|