4 ms·
> What's wrong with good old inline event handlers like onclick? With them you can just click a called function name and see its source. I haven't read the sou
by whoisjuan 7y ago
> What's wrong with good old inline event handlers like onclick? With them you can just click a called function name and see its source.
I haven't read the source of Alpine but I'm assuming the inline declarations are abstractions that are moved out of the DOM execution context and therefore can be cached. Real inline event handlers will actually be evaluated and executed in every page load, which will affect performance, especially with inside loops.