Y
Hacker News
new
|
ask
|
show
|
jobs
by
sapling-ginger
882 days ago
For an article about "lightweight javascript", it mentions the bundle sizes of its examples exactly zero times. Probably because the livewire bundle alone is like 40kb, comparable to react+react-dom's 45kb.
3 comments
CharlesW
882 days ago
Vue 3 is 16kb, or 27kb if you use everything. It feels like "heavy" refers primarily to cognitive load (a legit factor, of course).
link
pier25
882 days ago
A big difference though is that the Livewire lib is downloaded only once and includes Alpine for client side stuff.
With React you still need a ton of JS with components and other libs.
link
fijiaarone
882 days ago
45kb (zipped!) for document.createElement() with a babel transpiler build process.
link
fijiaarone
882 days ago
Excuse me, I forgot that react-dom also ships with an implementation of document.appendChild()
link