Yeah, we store HTML in the DB, so only ever re-compute on changes. (This approach could change slightly over time to give us more flexibility, but it works well for efficiency).
And yeah — FastImage seems to allow you to look up either size, type, or animated, but doesn't let you open up the image to look for everything at once. 🤷♂️
Accessibility First DevRel. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
Yeah, we store HTML in the DB, so only ever re-compute on changes. (This approach could change slightly over time to give us more flexibility, but it works well for efficiency).
And yeah —
FastImage
seems to allow you to look up either size, type, or animated, but doesn't let you open up the image to look for everything at once. 🤷♂️Thought I had replied, must have closed browser by mistake 🙄
Looks like you are right, Line 223 in fastimages
So it looks to be animated, type or size as you thought.
Pretty sure you could extend it and just call them both together but that is probably an over optimisation!
Great solution for CLS either way ! ❤
I’d consider this an over optimization for the matter of this first PR, but once it’s merged, a dedicated task to optimize this makes sense.