If you use a third-party font for a piece of text that is part of the LCP, it may negatively affect the quality of the site. The browser will spend time extracting and loading it. With CLS, the situation is different. Before loading the third-party font, the browser will show the system font instead. After loading, it may turn out that the new font takes up a large area on the monitor, which leads to a shift in the layout and poor CLS. What else can be done?
Keep in mind that publishing fonts on your own phone number list third-party servers will not make the LCP metrics normal unless your website uses CDN and HTTP/2. So experiment with third-party and system fonts to find the optimal solution else can be done.
Extract critical CSS and JS
Keep in mind that CSS blocks rendering. The page is not rendered until the browser has extracted and parsed the CSS files. If they are large, they will take a long time to load, which will affect your LCP score. To reduce the size of CSS files and customer journey and buyer journey ensure that they do not negatively affect your LCP, use minification. CSS stylesheets often include unnecessary comments, line breaks, and whitespace. Removing these elements can reduce the final file size by half.
Compress HTPP content
To improve the LCP, you can compress HTPP content transmitted between browsers and servers. There are different compression algorithms. The most commonly used are Gzip and Brotli. They are suitable for compressing Javascript, HTML, CSS, and SVG files. We recommend that you try both algorithms to choose the most effective one. By the way, not every browser supports Brotli. Therefore, it is advisable to combine the algorithms.
Optimize images . This will affect the LCP, CLS values. How to do it:
- Compress images, for example, using pngquant and TinyPNG.
- Adjust image sizes. If this mobile list layout still shifts, then set the parameters for the block container and place the desired image in it.
- Set aside off-screen images. To do this, enter the command in the tag.
- Adapt images based on the width of the site visitor’s window. To do this, use the srcset attribute, especially if you need to adapt graphics to mobile devices.
To improve the LCP, CLS, TTFB metrics, you can additionally:
- reduce DOM size;
- optimize database queries;
- cache statistical elements;
- remove bootstrap.css;
- pre-connect to third-party secure resources;
- preload key resources.
This will not give significant results for technical SEO optimization of the site, but together with other methods it will improve the main Internet indicators.