alpinejs 65.7 kB vs vuejs 58.8 kB

Created on 1 May 2020  路  10Comments  路  Source: alpinejs/alpine

When reading about alpinejs it seems like it is smaller than Vue, but it seems not to be. Then was is "at a lower cost" refering to?

Most helpful comment

https://twitter.com/carlmjohnson/status/1069968685606031360

All those JS libraries bragging about how light they are when gzipped is like me bragging about how light I am on the Moon.

All 10 comments

Isn't the latest version of Vue JS about 90kB?
https://github.com/vuejs/vue/blob/v2.6.11/dist/vue.min.js

To be fair, this should not be really the selling point anyway. It's more about being more simple imo. Vue is still a great tool and it's more appropriate for other use cases (E.g. an SPA).

Yep, Alpine is more of a "simple declarative rendering & reactive data/event binding library with no build step required" but that's a mouthful.

I hope a lot of people who are using Alpine are going to have gzip compression enabled on their servers too which brings the size down dramatically of course.

https://twitter.com/carlmjohnson/status/1069968685606031360

All those JS libraries bragging about how light they are when gzipped is like me bragging about how light I am on the Moon.

@jenstornell Do you have a reference you can post showing that vue is 58 kB? I had a look but I couldn't find that figure anywhere. Thanks

In any event, Alpine is 22.8KB (7.5KB gzip) on the CDN, so the 65.7KB number doesn't really reflect reality.

I think this should just be closed. It's not actionable and it doesn't appear to be factual either. 馃槅

@SimoTod Alright, I admit that I Google it. I shouldn't have done that, sorry.

www google com_search_q=vue+js+file+size oq=vue+js+ aqs=chrome 0 69i59l2j0j69i57j0l3j69i60 1903j0j7 sourceid=chrome ie=UTF-8

Even if you have me thumbs down, I've got some great answers. I like what Alpine is ment to solve, so I'll probably try it out.

I'll close it. Thanks everyone!

@jenstornell no worries, I did not thumb you down. 馃ぃ I was just puzzled by the figures.
I think you got confused because you compared the not minified version of Alpine with an old stat from google (probably minified).
Glad you got your answers though. 馃憤

@jenstornell becareful, you might fall in love to Alpine at first sight. Hopefully we will see you coming up with some bugs with Alpine and would love to take a look at them. 馃馃榿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

allmarkedup picture allmarkedup  路  4Comments

imliam picture imliam  路  5Comments

BernhardBaumrock picture BernhardBaumrock  路  3Comments

zaydek picture zaydek  路  3Comments

ryangjchandler picture ryangjchandler  路  3Comments