this will be a short one
i created a fork of the vanilla-marquee module! my version is located here and contains two major changes:
- move away from
matt-utils(the creator’s snippet library that is not tree-shakeable) and instead just use normal JS functions (saved me about 1-2 KB) - export the minified version so that vite or wtv doesnt have to worry about minifying it (it does a worse job anyway; saved me about 12 KB)
the latter was much more impactful, to say the least
these small changes allowed its bundle size to go from ~20 KB to 6 KB. made me happy even though my bundle size was only 30 KB anyway (i’m not going to stop shrinking it.)
also im probably gonna make this smarter so that the next post isn’t “yet another music widget update” or something i’ll probably have it link to the commit somehow