Slide 35
Slide 35 text
Optimizing for Super Sonic Speed in Vue.js & Gridsome
Performance in Gridsome
Properly size images in Gridsome,
Gridsome offers a `g-image` component that outputs an optimized
progressive image. This component loads a very light base64 blurred image
by default, and, using an intersection observer, it swaps the blurred picture
with the larger, higher-quality image as soon as it comes in the viewport.
You can specify width, height and quality attributes to get the most
optimization possible, as well as cropping the image easily: