right now tinysub applies a blur filter to the background cover art based on user setting, through css.
the problem is that some browser engines do not handle this well. for example, WebKitGTK (on my really old computer) has extremely intense lag as long as the cover art is on and blurred, even when nothing is changing in the background!
this lag is even apparent even on modern computers when resizing the window, as the gpu constantly has to re-render the blur. so to mitigate that, I added a debounce while resizing, that hides the image while the debounce is active. but that's a bit hacky in my opinion...
recently i came across this super cool, small library called "glur" which lets you directly do IIR filter gaussian blur in JS: https://github.com/nodeca/glur
as this is a static element, blurring the image with JS once when loaded I think would be faster. once the image is blurred, the browser just renders a normal image, that's it. the gpu doesn't have to do any work. only downside is that it has to do the blur on the cpu instead of gpu.
it's a little cursed... but i think this would actually be faster than the css approach that tinysub has right now. css filter is great for dynamic elements, but for a static image that only changes when the song changes, i think that a JS blur makes more sense.
of course will require a bit of experimentation. if it doesn't go well i'll stick to the css blur, not a big deal anyway since it's off by default.
done, this is way nicer!