{"id":754,"date":"2024-02-06T05:51:17","date_gmt":"2024-02-06T05:51:17","guid":{"rendered":"https:\/\/designersham.com\/blog\/?p=754"},"modified":"2024-02-06T06:18:46","modified_gmt":"2024-02-06T06:18:46","slug":"google-updates-core-web-vitals-with-interaction-to-next-paint-inp","status":"publish","type":"post","link":"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/","title":{"rendered":"Google Updates Core Web Vitals With Interaction To Next Paint (INP)"},"content":{"rendered":"\n<p>Google has announced a new metric for measuring the responsiveness of web pages: Interaction to Next Paint (INP). <strong>INP will replace First Input Delay (FID) as a Core Web Vital on March 12, 2024.<\/strong><\/p>\n\n\n\n<p>In an announcement on its <a href=\"\/\/web.dev\/blog\/inp-cwv-march-12\" data-type=\"URL\" data-id=\"hhttps:\/\/web.dev\/blog\/inp-cwv-march-12\" target=\"_blank\" rel=\"noreferrer noopener\">Web.dev<\/a> blog, <strong>Google stated, &#8220;Today, we\u2019re announcing that INP will officially become a Core Web Vital and replace FID on March 12 of this year, and that FID will be deprecated in this transition.&#8221;<\/strong> This marks a significant change as FID will no longer be considered a Core Web Vital after March 12.<\/p>\n\n\n\n<p>In this article, I will explain what INP is, how it differs from FID, and how to optimize your site for it.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/#What_is_Interaction_to_Next_Paint_INP\" >What is Interaction to Next Paint (INP)?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/#How_does_Google_calculate_INP\" >How does Google calculate INP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/#Why_is_INP_important\" >Why is INP important?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/#How_to_optimize_your_site_for_INP\" >How to optimize your site for INP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/designersham.com\/blog\/google-updates-core-web-vitals-with-interaction-to-next-paint-inp\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Interaction_to_Next_Paint_INP\"><\/span>What is Interaction to Next Paint (INP)?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/designersham.com\/blog\/wp-content\/uploads\/2024\/02\/Interaction-to-Next-Paint-1024x604.webp\" alt=\"\" class=\"wp-image-766\" srcset=\"https:\/\/designersham.com\/blog\/wp-content\/uploads\/2024\/02\/Interaction-to-Next-Paint-1024x604.webp 1024w, https:\/\/designersham.com\/blog\/wp-content\/uploads\/2024\/02\/Interaction-to-Next-Paint-300x177.webp 300w, https:\/\/designersham.com\/blog\/wp-content\/uploads\/2024\/02\/Interaction-to-Next-Paint-768x453.webp 768w, https:\/\/designersham.com\/blog\/wp-content\/uploads\/2024\/02\/Interaction-to-Next-Paint.webp 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Interaction to Next Paint (INP) is a metric that measures the time between when a user interacts with a page (such as clicking a button or a link) and when the browser renders the changed pixels to the screen. It aims to capture aspects of interactivity that FID did not.<\/p>\n\n\n\n<p>FID, which was introduced in 2018, measured the time from when a user first interacted with a page to when the browser was able to respond to that interaction. However, FID had some limitations, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It only measured the first interaction on a page, ignoring subsequent ones.<\/strong><\/li>\n\n\n\n<li><strong>It did not account for the visual feedback of the interaction, such as highlighting a button or changing the cursor.<\/strong><\/li>\n\n\n\n<li><strong>It did not consider the complexity or duration of the interaction, such as loading new content or performing an animation.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>INP addresses these limitations by measuring the latency of all interactions on a page and taking into account the visual changes that result from them. For example, if a user clicks on a button that triggers an animation, INP will measure the time from when the user clicked to when the animation completed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_does_Google_calculate_INP\"><\/span>How does Google calculate INP?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To calculate INP, Google records the latency of each interaction on a page and selects one of them to represent the page&#8217;s overall interactivity. The selected interaction is either:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The interaction with the worst latency, if there are less than 50 interactions on the page.<\/strong><\/li>\n\n\n\n<li><strong>The 98th percentile of interaction latency, if there are more than 50 interactions on the page.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>The latency of an interaction is composed of three components:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The input delay, which is the time between when the user interacts with the page and when the browser starts processing it.<\/strong><\/li>\n\n\n\n<li><strong>The processing time, which is the time it takes for the browser to execute any code associated with the interaction.<\/strong><\/li>\n\n\n\n<li><strong>The presentation delay, which is the time between when the browser finishes processing the interaction and when it presents the next frame.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>The sum of these three components is the duration of an interaction. The longest duration of any event that is part of an interaction is its latency.<\/p>\n\n\n\n<p>For example, if a user clicks on a button that triggers a JavaScript function that takes 100 ms to execute and then an animation that takes 300 ms to complete, the duration of this interaction is 400 ms and its latency is also 400 ms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_is_INP_important\"><\/span>Why is INP important?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>INP is important because it reflects how users perceive the responsiveness of a web page. <strong>A low INP<\/strong> means that the page responds quickly and smoothly to user input, which can improve user satisfaction and engagement. <strong>A high INP<\/strong> means that the page is slow or unresponsive, which can frustrate users and make them abandon the page.<\/p>\n\n\n\n<p>Google uses INP as one of its<a href=\"https:\/\/www.corewebvitals.io\/core-web-vitals\/interaction-to-next-paint\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.corewebvitals.io\/core-web-vitals\/interaction-to-next-paint\" rel=\"noreferrer noopener\"> <strong>Core Web Vitals<\/strong><\/a>, which are a set of metrics that measure key aspects of user experience on the web. Core Web Vitals are used by Google in its ranking algorithm and are also displayed in tools like PageSpeed Insights and Search Console. Therefore, optimizing your site for INP can help you improve your site&#8217;s performance, visibility, and usability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_optimize_your_site_for_INP\"><\/span>How to optimize your site for INP?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To optimize your site for INP, you need to reduce the input delay, processing time, and presentation delay of your interactions. Here are some general tips to achieve this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Evaluate your current INP performance using tools like PageSpeed Insights, Chrome User Experience Report, or WebPageTest.<\/strong><\/li>\n\n\n\n<li><strong>Identify and diagnose issues that cause high INP, such as long JavaScript tasks, excessive main thread activity, large DOM size, or complex CSS selectors.<\/strong><\/li>\n\n\n\n<li><strong>Optimize your code and content following Google&#8217;s best practices, such as minimizing JavaScript execution time, reducing input delay, simplifying DOM structure, refining CSS selectors, or using web workers.<\/strong><\/li>\n\n\n\n<li><strong>Monitor and measure your INP performance over time using tools like Real User Monitoring (RUM) or Google Analytics.<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Interaction to Next Paint (INP) is a new metric that measures the responsiveness of web pages throughout all interactions on a page. It will replace First Input Delay (FID) as a Core Web Vital on March 12, 2024. To optimize your site for INP, you need to reduce the input delay, processing time, and presentation delay of your interactions. <strong>By doing so, you can improve your site&#8217;s user experience and search rankings.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/designersham.com\/#our-team\"><img loading=\"lazy\" decoding=\"async\" width=\"80\" height=\"80\" src=\"https:\/\/designersham.com\/blog\/wp-content\/uploads\/2023\/11\/sham-thumb.webp\" alt=\"sham thumb\" class=\"wp-image-555\" title=\"Unraveling the Mystery: The SEO Value of 404 Pages According to Google Revealed 3\"\/><\/a><\/figure>\n\n\n\n<p><strong>I hope you enjoy reading this blog post. If you want my team to improve your site&#8217;s user experience and search rankings without affecting by Google&#8217;s latest Core Web Vitals Update,&nbsp;<a href=\"https:\/\/bit.ly\/3sVDXSA\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google has announced a new metric for measuring the responsiveness of web pages: Interaction to Next Paint (INP). INP will replace First Input Delay (FID) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":768,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-754","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-and-seo-news","bwp-masonry-item","bwp-col-3","bwp-post-has-title"],"_links":{"self":[{"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/posts\/754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/comments?post=754"}],"version-history":[{"count":13,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/posts\/754\/revisions"}],"predecessor-version":[{"id":769,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/posts\/754\/revisions\/769"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/media\/768"}],"wp:attachment":[{"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/media?parent=754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/categories?post=754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/designersham.com\/blog\/wp-json\/wp\/v2\/tags?post=754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}