Interesting. But is that data available before the image is loaded? The background color example here is to provide a color background on initial render, because the image won't show up at first.
But the gradient look still could be the right call, it would just be done on the sever once ahead of time instead of calculated on the client. That is the general idea with most of the app's structure. More work at write time, less work at read time.
Yes exactly, I didn't mean to use that exact library client-side, but to take inspiration from the algorithm and use it on the server.
It's certainly a lot nicer than just a plain color!
Ah yes. Right on, good call.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.