Blog Post

Russ Jeffery • Apr 21, 2021

Core Web Vitals: We’ve Got Your Back

Starting mid-June, Google will implement Core Web Vitals, their new metrics for measuring website performance. Sites that score well on Core Web Vitals will have an edge over other sites, enjoying improved SEO while giving visitors an outstanding experience. 

Duda has been preparing for Core Web Vitals for months, working behind the scenes so that your sites are ready - and you don’t have to do a thing. We want to share with you some of the improvements we’ve made, and how they affect your sites, so you’re confident knowing that your sites are in top shape.






First, A Short Core Web Vitals Glossary 

Announced in May 2020, Core Web Vitals is Google’s latest evolution of experience and performance metrics, raising the bar of how websites should perform. These metrics are based on live site activities, rather than Google bots. You can read more about them here.

Web vitals are divided into the following 3 metrics:

  • CLS: Cumulative Layout Shift (CLS) is a metric that quantifies how often users experience unexpected shifts in site layout. These shifts are annoying and can harm the user experience. For example, if a user goes to click on a button and the position of that button moves because the layout moves, visitors will end up clicking on nothing.
  • LCP: Largest Contentful Paint (LCP) is a metric for how long it takes for the largest image or text block visible within the viewport to display, relative to when the page first started loading. 
  • FID: First Input Delay (FID) is a metric that helps measure a visitor’s first impression of a site's interactivity and responsiveness. For example, it measures the time from when a user first interacts with a page (i.e., clicks on a link or taps on a button) to the time when the browser begins responding to that interaction.



We’ve been preparing, so your sites are ready to perform   

To make sure that your sites are ready for Google’s new metrics, and to make sure your customers continue to have a great experience, Duda set up a dedicated team to constantly improve the infrastructure that will improve your Core Web Value metrics. Here are the highlight:



CLS Improvements


Problem: Photo gallery layout shifting
Photo galleries can vary in height due to the wide range of the number of images that can be added, and the possible sizes of each image. Also, Photo Gallery widgets load dynamically, based on their settings. 


Solution: Set min-height 

Duda sets the min-height CSS property of the Photo Gallery, to reserve space on the page for loading the Photo Gallery. This prevents content below the gallery from being pushed down as the images load, something which would cause the layout to shift.

------


Problem: Image layout shifting
Image loading is the biggest cause of layout shifting on the web, because browsers have no way of knowing the dimensions/size of an image before it's fully downloaded. So, once an image is actually downloaded, browsers load and shift all content around it.


Solution: Add image width & height
Duda automatically identifies the width and height of an image, and sets these attributes on the image HTML tag,  allowing browsers to reserve the right amount of space while the image downloads. Note: Setting height and width does not make an image non-responsive. Instead, browsers use the image’s width/height attributes for calculating its aspect ratio so images automatically take up the correct space.

------


Problem: Loading above-the-fold fonts 
Nearly every website today includes some form of custom fonts, usually from Google’s huge Font Library. Fonts are often big and heavy, and browsers usually first load a system font, such Arial, Georgia, Sans, etc. Once the custom font is done loading, the browser adds the custom font, something which causes the font to jump on the website, and has a negative impact on the visitor’s experience.


Solution: Embed fonts
Duda automatically detects which custom fonts are used in above-the-fold content on each page, downloads that font, and embeds it directly into the HTML of the page (up to a max size of 50kb). This means browsers don’t need to go and fetch the custom font, and can display it immediately.


LCP Improvements

Problem: Background slider image loading Background image sliders can be big and heavy to load, especially when there are multiple images that take up the same space on a web page. Previously, Duda loaded all background images of a background image slider at the same time. 

Solution: Optimize background image slider loading Duda prioritizes loading the first image in the Image Slider, and then lazy loads the other images, improving how quickly the first image loads.

------







Problem: CSS loading priorities Browsers have to make many decisions about what type of content and resources to load and when. Duda automatically generates all of the required styles needed to load above-the-fold content, so we already know which resources do not need to load first.

Solution: CSS loading priorities hints Duda gives browsers hints about which resources they should prioritize when downloading page content. This helps browsers focus on the required content and resources, for faster page loading. 


CLS and LCP Improvements


Problem: Widget image 
Many widgets, especially those built using the Widget Builder, feature images. Previously, these images were not sized to the correct screen size and did not automatically have width/height dimensions added to them. 


Solution: Optimize image widgets
The image width/height improvements described above are now implemented for images within widgets, too.

We’ve got your back

Duda has always placed a huge importance on site performance, and we continue to do so today, so your sites meet the highest industry standards and provide a great user experience. 

We’ll keep you updated on further platform improvements as we make them, and want to make sure you know that we’ve got your back when it comes to performance. We’re taking care of behind-the-scenes considerations so you can focus on what you do best: creating great-looking, high-converting sites for your clients. 



LATEST POSTS

A picture of two cards with the words ``6 new store updates '' written on it.
By Ofri Baram 25 Apr, 2024
Sync the catalog with Google, add an image or text block to product pages, and more.
A blue background with the words 4 new seo updates
By Tal Levi 22 Apr, 2024
More SEO perks and optimization opportunities for you.
A computer screen with the words new icons library on it
By Amir Glatt 18 Apr, 2024
Over 5 million free icons for you to choose from, and a place to upload your own.
Show More
Proudly built on the Duda Responsive Website Builder
Share by: