News for hackers. Stuff that matters.
Re:How Laravel Livewire works by recursivedoubts on Wednesday October 13, 2021 @11:53AM (#28853773)
You can tear out some of the stuff (sse support, web sockets) and shrink it ~2k. Do away with the events mechanism and extension points, knock down the configuration options, drop IE support and probably get it down to around 6 or 7k.

It could certainly be smaller, but to support things like CSS transitions and so forth it takes some code. I've tried to keep the power-to-weight ratio high by creating a rich events model and extensions mechanism to take pressure off the core library. My goal was to keep it under 10k, but I couldn't do it (I may pull SSE and WebSocket support out to try to tuck it under 10k again.)

On the other hand, compare it with the average image on a website, and 11k isn't bad.

There are no comments on this comment yet.