logoalt Hacker News

test1072last Tuesday at 10:26 AM4 repliesview on HN

Perhaps "eventlistener" word can be extracted, and dynamically called as string to reduce bytes


Replies

chrismorganlast Wednesday at 2:12 AM

This has been a popular technique at times, but it tends to increase compressed sizes: gzip and similar are better at common string deduplication, having lower overhead. Such shenanigans are also bad for performance, especially in hot paths due to making it harder for the browser to optimise it.

hmmokidklast Tuesday at 3:53 PM

You joke, but I think about things like this...a lot.