You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't really found a method of resizing images before sending them out, but I might have a method of reducing load times. Essentially it involves using the Intersection Observer API to check whether the image has entered the view port. Before the image is loaded, the dominant color of the image is used as a placeholder (the dominant color is determined using this tool). When the image enters the viewport, the background url is set to the appropriate image.
I created a mockup using standard html and CSS. A few of these things can be tweaked of course, such as when images pop in, how long they take to fade in or whether there's a transition animation.
We're currently serving oversized images, let's add something to help us generate images that are a better size
Possible options include:
I haven't looked closely at either of these options
The text was updated successfully, but these errors were encountered: