<?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 Deepak Kushwaha on Medium]]></title>
        <description><![CDATA[Stories by Deepak Kushwaha on Medium]]></description>
        <link>https://medium.com/@tracedeepak?source=rss-e7df6efe3fe8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HJopw0EOkCc6Rtdr.jpg</url>
            <title>Stories by Deepak Kushwaha on Medium</title>
            <link>https://medium.com/@tracedeepak?source=rss-e7df6efe3fe8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:13:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tracedeepak/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[From FID to INP: Are you ready for Google’s Next-Gen Metric]]></title>
            <link>https://medium.com/@tracedeepak/from-fid-to-inp-are-you-ready-for-googles-next-gen-metric-e00a8fb32d56?source=rss-e7df6efe3fe8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e00a8fb32d56</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[core-web-vitals]]></category>
            <dc:creator><![CDATA[Deepak Kushwaha]]></dc:creator>
            <pubDate>Wed, 28 Feb 2024 11:50:26 GMT</pubDate>
            <atom:updated>2024-02-28T11:50:26.824Z</atom:updated>
            <content:encoded><![CDATA[<p>The ever-evolving landscape of web development demands a proactive approach to stay ahead of the curve. Google’s announcement on May 10, 2023, indicated a significant change in the Core Web Vitals, with INP slated to replace FID by March 2024. These metrics, integral to Google’s Search algorithm, hold immense importance for website owners invested in Search Engine Optimization (SEO). Proactive preparation for this transition is crucial to prevent potential repercussions on their search rankings. Here are some essential points to grasp the upcoming modifications:</p><p><strong>How it is different from FID?</strong></p><p>INP, evaluates a page’s overall responsiveness by assessing the latency of all user interactions throughout their visit, considering clicks, taps, and keyboard inputs. The final INP value represents the longest interaction observed, excluding outliers.</p><p>On the other hand, FID, or First Input Delay, specifically measures the time it takes for the browser to initiate processing after the first user interaction on a page, focusing on taps and key presses. FID only considers the very first occurrence of these events.</p><p>In essence, while INP provides a holistic view of responsiveness across all interactions, FID specifically gauges the delay for the initial user interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JnHOTgcdTpk-Iz7q8szBA.png" /></figure><p><strong>INP </strong>— Basic Longest Interaction duration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FhikqmiDaYYjgnOBucj3FA.png" /></figure><p><strong>What is a good INP score?</strong></p><p>&lt;200 ms — Good</p><p>200–500 — Needs Imporvement</p><p>&gt;500 is considered as POOR</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*6sRiUgPqeJLrPeRuD6e9sw.png" /></figure><p><strong>How to measure INP?</strong></p><p>If your website qualifies for inclusion in the <a href="https://developer.chrome.com/docs/crux/">Chrome User Experience Report (CrUX)</a>, you can quickly get field data for INP <a href="https://web.dev/articles/find-slow-interactions-in-the-field#get_field_data_quickly_with_crux">via CrUX in PageSpeed Insights</a></p><p><strong>Million Dollar Question: How to improve INP?</strong></p><p>It’s a two step process Diagnosing and Optimizing</p><p><strong>Diagnosing and Optimizing</strong></p><p>Your optimization journey for INP ideally begins with field data, especially if your website qualifies for inclusion in the Chrome User Experience Report (CrUX). Utilizing popular CDNs like Cloudflare can provide not only the INP value for a page but also contextual data pinpointing the specific interaction contributing to the INP value. This information includes details on whether the interaction took place during or after page load, the type of interaction (click, keypress, or tap), and other valuable insights.</p><p>Optimizing involves three phases: <strong>input delay</strong>, <strong>processing time</strong>, and <strong>presentation delay</strong>. These collectively contribute to total interaction latency.</p><ol><li><strong>Identify and Reduce Input Delay</strong></li></ol><p>Input delay initiates when a user interacts with the page and ends when event callbacks commence. Considerable input delays may result from main thread activity, script loading, parsing, and timer functions. Reduce input delay by minimizing synchronous layout work, ensuring responsive page loads.</p><p><strong>2. Optimize Event Callbacks</strong></p><p>Optimizing event callbacks involves doing minimal work in callbacks and breaking up tasks to prevent long tasks on the main thread. Use setTimeout to defer non-critical work to subsequent tasks, maintaining nimble callbacks. Consider structuring code to limit rendering-critical work immediately after callbacks, allowing faster rendering.</p><p><strong>3. Minimize Presentation Delay</strong></p><p>Presentation delay spans from the end of event callbacks to the browser painting the next frame. Minimize DOM size to reduce rendering work, especially during initial page load and in response to user interactions. Leverage CSS content-visibility to lazily render off-screen elements, improving rendering performance.</p><p>Be mindful of performance costs when rendering HTML using JavaScript, as rendering large amounts of HTML may impact responsiveness. Understanding these optimization techniques can lead to a better user experience and improved Core Web Vitals metrics.</p><p>In conclusion, preparing for the transition from FID to INP is essential for maintaining strong SEO rankings. INP offers a comprehensive view of responsiveness across all interactions, contrasting with FID’s focus on the initial user interaction. A good INP score is under 200 ms, and website owners can measure and enhance it by following a two-step process: diagnosing and optimizing.</p><p>Read <a href="https://web.dev/articles/inp">more</a> to delve into the details of Interaction to Next Paint (INP).”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e00a8fb32d56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GA4 (Google Analytics 4) — Is your traffic under-reported?]]></title>
            <link>https://medium.com/@tracedeepak/ga4-google-analytics-4-is-your-traffic-under-reported-c383d83d029b?source=rss-e7df6efe3fe8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c383d83d029b</guid>
            <dc:creator><![CDATA[Deepak Kushwaha]]></dc:creator>
            <pubDate>Wed, 28 Jun 2023 08:02:30 GMT</pubDate>
            <atom:updated>2023-06-28T08:02:30.657Z</atom:updated>
            <content:encoded><![CDATA[<h3>GA4 (Google Analytics 4) — Is your traffic under-reported?</h3><p>GA4 introduces a fundamental change in tracking methodology by adopting an event-based model. Instead of relying primarily on pageviews, GA4 focuses on capturing and analyzing user interactions as events. This shift enables a more comprehensive understanding of user behaviour across websites and mobile apps, empowering businesses to gain deeper insights into customer journeys and engagement patterns.</p><p>To prepare for GA4, it’s recommended to familiarize yourself with the new features and functionalities it offers. Some key differences include the focus on <strong>event-based tracking</strong>, the ability to analyze both <strong>web and app data in a single property</strong>, <strong>enhanced cross-device tracking</strong>, and a more <strong>user-centric approach</strong>.</p><p><strong>How it impacted us?</strong></p><p>Our platform, <a href="https://www.squareyards.com/">www.squareyards.com</a> used to get 70% of traffic from mobile devices and the rest from Desktops/tablets. After switching to GA4 tracking (follow this link to know how to enable it) on our platform, we found a sudden drop in GA4 reports. Upon further investigation, we found mobile traffic was under-reported by the GA4 tracker. Thanks to the <a href="https://support.google.com/analytics/answer/9269518?hl=en">Comparison feature</a> in the GA4 Reports and <a href="https://chrome.google.com/webstore/detail/debugger-for-google-analy/nomnoimacbncclfbnfaingniikblfbji">Debugger chrome extension for GA4</a> which helped us understand/diagnose the issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPAYgc19c5K55cdKI3HfHw.png" /><figcaption>GA4 Debugger — Chrome Extension</figcaption></figure><p><strong>Diagnosis</strong></p><p>We first ensured all of the GA4 events are being triggered across the website and various devices (desktop &amp; mobile), to simulate mobile device behaviour, we used <a href="https://developer.chrome.com/docs/devtools/device-mode/override-user-agent/#:~:text=Press%20Command%20%2B%20Shift%20%2B%20P%20(,to%20open%20the%20Command%20Menu.&amp;text=Type%20network%20conditions%20%2C%20select%20Show,open%20the%20Network%20conditions%20tab.">Network Conditions</a> feature available in Google Chrome(<em>refer to the screenshot below</em>). Despite all of our events being triggered as configured, traffic was under-reported in the GA4 dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_uQsKFQc0LpA01Bl-NZcQ.png" /><figcaption>Chrome Network Conditions to Override User Agent</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*XS1oSyVGEuqezQpChH_H1Q.jpeg" /><figcaption>Only 20% mobile traffic</figcaption></figure><p><strong>The Solution</strong></p><p>There is an important setting in GA4 Console to allow Google to collect metadata about granular device details of your site and app visitors so it can provide location and device-based capabilities, which is turned OFF by default in any new property being created in GA Dashboard. Here is how you can change this setting. Go to your <strong>GA4 property settings</strong> and select <strong>Data Collection, </strong>enable <strong>Granular location and device data collection (</strong><em>refer to the screenshot below</em><strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-T2ol6_f9c7xL5tEMIzFpQ.png" /><figcaption>Granular Location and Device data collection setting</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbgwImylbPY9YWPNpKmYwg.jpeg" /><figcaption>Final Results</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c383d83d029b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Power of Critical Page Rendering: Boosting Website Performance for Better User…]]></title>
            <link>https://medium.com/@tracedeepak/unveiling-the-power-of-critical-page-rendering-boosting-website-performance-for-better-user-81ff666df85a?source=rss-e7df6efe3fe8------2</link>
            <guid isPermaLink="false">https://medium.com/p/81ff666df85a</guid>
            <dc:creator><![CDATA[Deepak Kushwaha]]></dc:creator>
            <pubDate>Mon, 24 Apr 2023 07:16:18 GMT</pubDate>
            <atom:updated>2023-04-24T07:16:18.422Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unveiling the Power of Critical Page Rendering: Boosting Website Performance for Better User Experience</h3><p>Improving website speed is crucial for enhancing Core Web Vitals such as Largest Contentful Paint (LCP) and First Contentful Paint (FCP) in order to provide an excellent user experience and improve SEO performance. However, even after following the best practices, some website owners may still encounter issues with their LCP and FCP metrics. Let’s explore the concept of <strong>critical page rendering</strong> and its significance in improving website performance.:</p><p><strong>What is Critical Page Rendering?</strong></p><p>Critical page rendering, also known as “above-the-fold” rendering, focuses on rendering the most important content of a web page first, allowing users to see meaningful information before the entire page is loaded. The above-the-fold area refers to the portion of the web page that is visible to users without scrolling, typically including the header, hero section, and other crucial content that provides an initial impression to users. Critical page rendering prioritizes the rendering of this above-the-fold content to ensure a faster initial page load and a better user experience. Here it is visualized:</p><p><strong>Critical Rendering Path: With Render blocking CSS &amp; Javascript</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9CK6lUpAcicrYvJ-6vyiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjJiWPWvdBm1ODslojzquQ.png" /></figure><p>Here we can see, the browser has to wait for CSS and Javascript to download and run the script/prepare CSSOM, which delays rendering and therefore impacts FCP and LCP. Let’s understand blocking resources first.</p><p>Render-blocking resources are resources that must be loaded before the browser can render the web page. These resources include CSS files, JavaScript files, and web fonts. When a web page contains render-blocking resources, the browser must wait for these resources to be downloaded and processed before it can begin rendering the page. This delay can lead to longer loading times, resulting in a poor user experience.</p><p>Let’s take a look at improving critical page rendering which involves several techniques that prioritize the rendering of above-the-fold content. Here are some commonly used approaches:</p><ol><li>Inline Critical CSS: Critical CSS is the CSS that is required to render the above-the-fold content. Inlining this critical CSS directly in the HTML of the web page can ensure that the CSS required for rendering the above-the-fold content is loaded and applied quickly, improving the initial page load time.</li><li>Asynchronous JavaScript Loading: JavaScript can significantly impact page load times, as it often requires downloading and executing before the page can render. Using techniques such as asynchronous JavaScript loading or deferred JavaScript loading can prioritize the rendering of above-the-fold content while the rest of the JavaScript loads in the background.</li><li>Lazy Loading of Non-Critical Resources: Lazy loading is a technique that defers the loading of non-critical resources, such as images and videos, until they are needed. This can help prioritize the rendering of above-the-fold content and improve initial page load times.</li><li>Server-Side Rendering (SSR): SSR involves rendering web pages on the server before sending them to the client, which can improve initial page load times and enable faster rendering of above-the-fold</li></ol><p><strong>Critical Rendering Path: Without Render blocking CSS &amp; Javascript</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyhbX6YfkJzczPDSncLARA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*P5SfpAnOnJWRdk6LWgsb5Q.png" /></figure><p>In conclusion, critical page rendering is a powerful technique that can significantly improve website performance and user experience. By adopting these techniques, website owners can ensure that their users have a seamless and fast browsing experience, leading to increased engagement and better conversions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81ff666df85a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Core Web Vitals: The Impact of Adding a Subdomain for Static Assets]]></title>
            <link>https://medium.com/@tracedeepak/optimizing-core-web-vitals-the-impact-of-adding-a-subdomain-for-static-assets-2abcbf99b14d?source=rss-e7df6efe3fe8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2abcbf99b14d</guid>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[pagespeed-performance]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[core-web-vitals-seo]]></category>
            <dc:creator><![CDATA[Deepak Kushwaha]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 05:46:26 GMT</pubDate>
            <atom:updated>2023-04-17T05:46:26.605Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of web performance optimization, leveraging a CDN and serving static assets from a separate subdomain has been a common practice. By offloading static assets such as images, scripts, and stylesheets to a different subdomain, website owners aim to improve load times and overall performance. However, this practice can also have an impact on Core Web Vitals, the set of performance metrics introduced by Google that measure the user experience of websites. Let’s take a closer look at how adding a new subdomain for static assets can affect Core Web Vitals.</p><p>1. <strong>Loading Performance (Largest Contentful Paint — LCP):</strong><br>LCP measures the time it takes for the largest piece of content to become visible to users. Serving static assets from a separate subdomain can impact LCP in both positive and negative ways. On one hand, offloading static assets to a different subdomain can help improve parallelization of requests, allowing assets to load concurrently and potentially reducing the overall loading time of the page. This can result in a lower LCP score, which is desirable for good Core Web Vitals performance.</p><p>On the other hand, adding a new subdomain for static assets may also introduce additional DNS lookups, redirects, or increase the round-trip time (RTT) for requests, which can negatively impact LCP. If the subdomain is not properly optimized or hosted on a slow server, it may increase the time it takes for static assets to load, leading to a higher LCP score and a poorer user experience.</p><p>To mitigate these issues, it’s important to optimize the new subdomain for performance. This may involve minimizing DNS lookups, avoiding unnecessary redirects, leveraging caching and CDNs, and choosing a reliable hosting provider with fast server response times.</p><p>2. <strong>Interactivity (First Input Delay — FID):</strong><br>FID measures the time it takes for a website to respond to user input. Serving static assets from a separate subdomain typically does not have a direct impact on FID, as it mainly focuses on the main thread activities of a webpage. However, if the subdomain is not properly optimized or if it introduces additional JavaScript or other resources that block the main thread, it may indirectly impact FID.</p><p>To mitigate this, it’s important to ensure that the new subdomain does not introduce any unnecessary blocking resources or scripts that can delay the main thread activities and impact FID. Optimizing the scripts and resources on the subdomain, and ensuring that they do not block the main thread, can help maintain optimal interactivity and FID scores.</p><p>In conclusion, thoughtful consideration and optimization of the subdomain for serving static assets can play a pivotal role in improving Core Web Vitals, and ultimately enhancing the overall performance and user experience of a website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2abcbf99b14d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>