How do you solve core Web vital issues?

There are many techniques that you can use to solve issues with the Core Web Vitals on your website. Here are a few examples:

  1. Optimize images: Large images can take a long time to load, which can affect the Largest Contentful Paint (LCP) and the First Input Delay (FID) of a page. To optimize images, you can try reducing their file sizes by using appropriate image formats and compressing them using tools like ImageOptim or You can also consider using responsive images to ensure that the size of the images is appropriate for the device and connection that is being used to view the page.
  2. Minimize the use of large JavaScript libraries: Large JavaScript libraries can take a long time to load and parse, which can affect the LCP and the FID of a page. To minimize their impact on performance, you can consider loading these libraries asynchronously or only loading the parts of the library that are needed for the current page. You can also consider using code-splitting to break up large JavaScript files into smaller chunks that can be loaded on demand.
  3. Reduce server roundtrips: Each time a browser makes a request to the server for a resource, it has to wait for a response before it can continue rendering the page. This can affect the LCP and the FID of a page. To reduce server roundtrips, you can consider techniques such as concatenating files, minifying code, and using a content delivery network (CDN) to distribute static assets more efficiently.
  4. Use font-display: The font-display property allows you to specify how font files should be loaded and displayed on your website. By setting this property to “swap” or “fallback”, you can ensure that the layout of the page is not affected by the loading of fonts.
  5. Defer non-critical resources: If you have resources on your page that are not critical to the initial rendering of the page, such as large JavaScript libraries or third-party widgets, consider deferring their loading until after the main content of the page has been displayed. This can help to reduce layout shifts that may occur as these resources are loaded.

    These are just a few examples of the techniques that you can use to solve issues with the Core Web Vitals. It’s a good idea to regularly test your website using tools like Lighthouse or Chrome DevTools to identify any performance issues and to track your progress as you work to improve the performance of your website.

Related Questions