<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ruijadom on Medium]]></title>
        <description><![CDATA[Stories by ruijadom on Medium]]></description>
        <link>https://medium.com/@ruijadomingues?source=rss-3181c9efa095------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uY4Eh7VnFbwcfGbjfpasVA.jpeg</url>
            <title>Stories by ruijadom on Medium</title>
            <link>https://medium.com/@ruijadomingues?source=rss-3181c9efa095------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:56:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruijadomingues/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What are Core Web Vitals and how to improve them]]></title>
            <link>https://medium.com/@ruijadomingues/what-are-core-web-vitals-and-how-to-improve-them-5c65c1fec3db?source=rss-3181c9efa095------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c65c1fec3db</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[web-vitals]]></category>
            <dc:creator><![CDATA[ruijadom]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 14:01:49 GMT</pubDate>
            <atom:updated>2022-12-31T17:24:40.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*VBeHJ0PF2pcmaTxhVouWJw.png" /></figure><p>As a front-end developer i always look for the best results and better performance and for that web vitals are important for several reasons:</p><ol><li>User experience: They are an indicator of the performance of your website or web application, which directly impacts the user experience. If your website or web application loads slowly or is unstable, users are likely to have a negative experience, which can lead to increased bounce rates, lower engagement, and potentially lower conversion rates. You can ensure that your website or web application provides a fast and stable user experience, which can lead to increased user satisfaction and engagement.</li><li>Search engine rankings: Search engines place a high value on fast and user-friendly websites, and improving the performance of your website or web application can have a positive impact on search engine rankings. You can help improve your website’s or web application’s search engine rankings, which can lead to increased traffic and potential business opportunities.</li><li>Maintenance and scalability: A well-performing website or web application is easier to maintain and scale than a poorly performing one. You can help ensure that your website or web application is maintainable and scalable, which can save you time and resources in the long run.</li></ol><p>Web vitals are an important aspect of front-end development because they are an indicator of the performance, user experience, and maintainability of your website or web application. By focusing on web vitals, you can build websites and web applications that are fast, stable, and provide a good user experience, which can lead to increased user satisfaction and engagement, improved search engine rankings, and easier maintenance and scalability.</p><p>They are a set of metrics that measure the quality of user experience on the web. They include:</p><ol><li><strong>Largest Contentful Paint (LCP)</strong>: measures the time it takes for the main content of a page to load and become visible to the user.</li><li><strong>First Input Delay (FID):</strong> measures the time it takes for a page to become interactive, i.e., the time it takes for the browser to respond to the first user input on the page.</li><li><strong>Cumulative Layout Shift (CLS):</strong> measures the stability of a page, i.e., the amount of unexpected layout shifts that occur while the page is loading.</li></ol><h3>How do you measure and evaluate core web vitals?</h3><p>There are a few different ways to measure and evaluate core web vitals:</p><ol><li>Use browser dev tools: Many modern web browsers come with built-in developer tools that allow you to measure core web vitals for a specific page. In Chrome, for example, you can use the “Performance” tab in the dev tools to see metrics like LCP, FID, and CLS.</li><li>Use online tools: There are also several online tools that can help you measure and evaluate core web vitals. One popular option is Lighthouse, a performance auditing tool developed by Google. Lighthouse can be run from the command line, as a Chrome extension, or as a part of the Chrome dev tools. It generates a report that includes information on core web vitals and other performance metrics.</li><li>Use a monitoring service: If you want to track the performance of your site over time, you can use a monitoring service that tracks core web vitals and other performance metrics. There are several options available, including PageSpeed Insights, SpeedCurve, and WebPageTest. These tools can help you identify trends and issues with the performance of your site.</li></ol><h3>How to Optimize Largest Contentful Paint</h3><p><strong>Largest Contentful Paint (LCP)</strong> is a measure of how quickly the main content of a webpage is visible to the user. Here are some ways to optimize LCP:</p><ol><li>Optimize images: Large images can significantly impact the LCP, so it’s important to optimize them for the web. This can include resizing images to the appropriate dimensions, compressing them using tools like TinyPNG or ImageOptim, and using responsive images to serve different versions of the same image based on the device’s resolution.</li><li>Minimize the number of resources: Every additional resource (such as images, scripts, and stylesheets) that a webpage has to load can increase the LCP. Try to minimize the number of resources by combining files, using CSS instead of images wherever possible, and using content delivery networks (CDNs) to serve resources from locations closer to the user.</li><li>Defer non-critical resources: Non-critical resources, such as tracking scripts or ads, can be deferred until after the main content has loaded to improve the LCP.</li><li>Use a preloading strategy: Preloading resources can help improve the LCP by allowing the browser to start loading resources as soon as the webpage is requested, rather than waiting for the HTML to be parsed. You can use the preload and prefetch resource hints to indicate to the browser which resources are important and should be loaded early.</li><li>Optimize the server response time: The server response time, also known as time to first byte (TTFB), can impact the LCP. Make sure your server is configured to serve resources as efficiently as possible, and consider using a caching plugin or service to reduce the load on the server.</li><li>Use a performance budget: Setting a performance budget can help you prioritize performance improvements and ensure that you’re not adding unnecessary bloat to your webpage. A performance budget specifies the maximum amount of time the LCP should take, and helps you identify which resources are contributing the most to the LCP.0</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nVsL9IUhEE4JvYveksZjxQ.png" /></figure><p>read more: <a href="https://web.dev/optimize-lcp/">https://web.dev/optimize-lcp/</a></p><h3>How to optimize First Input Delay</h3><p><strong>First Input Delay (FID) </strong>is a measure of how quickly a webpage becomes interactive, i.e., how long it takes for the browser to respond to the first user input on the page. Here are some ways to optimize FID:</p><ol><li>Defer non-critical JavaScript: Non-critical JavaScript can significantly impact the FID, as the browser has to parse and execute the script before it can respond to user input. To improve the FID, try to defer non-critical JavaScript until after the page has become interactive. You can use the defer attribute to indicate that a script should be executed after the page has finished parsing.</li><li>Optimize critical JavaScript: If you have critical JavaScript that needs to run as soon as possible, make sure it’s optimized for performance. This can include minifying the code, using code splitting to break it up into smaller chunks, and using techniques like tree shaking to remove unnecessary code.</li><li>Use a performance budget: Setting a performance budget can help you prioritize performance improvements and ensure that you’re not adding unnecessary bloat to your webpage. A performance budget specifies the maximum amount of time the FID should take, and helps you identify which resources are contributing the most to the FID.</li><li>Use a framework that prioritizes performance: Some JavaScript frameworks are designed to prioritize performance and minimize the FID. For example, React uses a virtual DOM to minimize the amount of work the browser has to do when updating the page, which can help improve the FID.</li><li>Consider server-side rendering: Server-side rendering (SSR) can improve the FID by rendering the initial HTML on the server, rather than in the browser. This can reduce the amount of work the browser has to do when the page first loads, resulting in a faster FID.</li><li>Monitor and optimize the FID: Use tools like Lighthouse or PageSpeed Insights to monitor the FID for your webpage, and use the recommendations provided to identify and fix any issues.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QjbNCsDITbuA1D83a628A.png" /></figure><p>read more: <a href="https://web.dev/optimize-fid/">https://web.dev/optimize-fid/</a></p><h3>How to optimize Cumulative Layout Shift</h3><p><strong>Cumulative Layout Shift (CLS)</strong> is a measure of the stability of a webpage, i.e., how much the layout of the page changes unexpectedly while it’s loading. Here are some ways to optimize CLS:</p><ol><li>Avoid layout shifts caused by dynamically injected content: Dynamically injected content, such as ads or widgets, can cause layout shifts if the browser doesn’t know the exact size of the content beforehand. To avoid these shifts, try to provide the browser with the dimensions of the content in advance, either through the use of container elements with fixed dimensions or by using the aspect-ratio CSS property.</li><li>Use aspect ratios for images: If you don’t know the exact size of an image beforehand, you can use the aspect-ratio CSS property to specify the width-to-height ratio of the image, which can help prevent layout shifts caused by images that are unexpectedly small or large.</li><li>Avoid layout shifts caused by web fonts: Web fonts can cause layout shifts if the browser doesn’t know the exact size of the font beforehand. To avoid these shifts, you can use the font-display CSS property to specify how the browser should handle web fonts that are not yet loaded.</li><li>Use a performance budget: Setting a performance budget can help you prioritize performance improvements and ensure that you’re not adding unnecessary bloat to your webpage. A performance budget specifies the maximum amount of layout shift that should occur, and helps you identify which resources are contributing the most to the CLS.</li><li>Monitor and optimize the CLS: Use tools like Lighthouse or PageSpeed Insights to monitor the CLS for your webpage, and use the recommendations provided to identify and fix any issues.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqgBqe2Rp8A2Owi_dqw2sQ.png" /></figure><p>read more: <a href="https://web.dev/optimize-cls/">https://web.dev/optimize-cls/</a></p><p>It’s important to note that core web vitals are just one aspect of overall performance, and it’s a good idea to consider other metrics as well, such as time to first byte, time to first paint, and time to interactive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c65c1fec3db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>