<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fcp - Deployment Every Day</title>
	<atom:link href="http://deploymenteveryday.com/tag/fcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://deploymenteveryday.com</link>
	<description>JVM (java/kotlin) performance, programming, frequent deployments, devops</description>
	<lastBuildDate>Mon, 23 Dec 2024 11:24:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>Is (website) performance improved after improving percentile 90?</title>
		<link>http://deploymenteveryday.com/is-website-performance-improved-after-improving-percentile-90/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=is-website-performance-improved-after-improving-percentile-90</link>
					<comments>http://deploymenteveryday.com/is-website-performance-improved-after-improving-percentile-90/#respond</comments>
		
		<dc:creator><![CDATA[Mikolaj Grzaslewicz]]></dc:creator>
		<pubDate>Mon, 09 Sep 2024 15:14:25 +0000</pubDate>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[fcp]]></category>
		<category><![CDATA[first contentful paint]]></category>
		<category><![CDATA[p90]]></category>
		<category><![CDATA[percentile]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[web vitals]]></category>
		<guid isPermaLink="false">https://deploymenteveryday.com/?p=236</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<p class="responsive-video-wrap clr"><iframe title="Is (website) performance improved when percentile 90 is improved?" width="1200" height="675" src="https://www.youtube.com/embed/1Fbi2EgqUpM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
</div></figure><p>The post <a href="http://deploymenteveryday.com/is-website-performance-improved-after-improving-percentile-90/">Is (website) performance improved after improving percentile 90?</a> first appeared on <a href="http://deploymenteveryday.com">Deployment Every Day</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>http://deploymenteveryday.com/is-website-performance-improved-after-improving-percentile-90/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>No More Guesswork: Validating what improves First Contentful Paint upfront with No-Code Experiments</title>
		<link>http://deploymenteveryday.com/no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments</link>
					<comments>http://deploymenteveryday.com/no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments/#respond</comments>
		
		<dc:creator><![CDATA[Mikolaj Grzaslewicz]]></dc:creator>
		<pubDate>Mon, 12 Aug 2024 15:11:41 +0000</pubDate>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[fcp]]></category>
		<category><![CDATA[first contentful paint]]></category>
		<category><![CDATA[web vitals]]></category>
		<guid isPermaLink="false">https://deploymenteveryday.com/?p=205</guid>

					<description><![CDATA[<p>Let&#8217;s take a look at performance of 2 websites with a goal to improve it. Let&#8217;s use FCP (First Contentful Paint) as a performance metric, which is a core google web vital metric. Following tools are used to verify website performance and get fix suggestions I&#8217;m going to use those tools to see Let&#8217;s start [&#8230;]</p>
<p>The post <a href="http://deploymenteveryday.com/no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments/">No More Guesswork: Validating what improves First Contentful Paint upfront with No-Code Experiments</a> first appeared on <a href="http://deploymenteveryday.com">Deployment Every Day</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">Let&#8217;s take a look at performance of 2 websites with a goal to improve it. Let&#8217;s use <code>FCP</code> (<code>First Contentful Paint</code>) as a performance metric, which is a core google web vital metric.</h1>



<p class="wp-block-paragraph">Following tools are used to verify website performance and get fix suggestions</p>



<ul class="wp-block-list">
<li>https://pagespeed.web.dev/
<ul class="wp-block-list">
<li>tool that says what potential performance problems a website has</li>
</ul>
</li>



<li>and my own <code>performance-explainer</code> which aims to explain
<ul class="wp-block-list">
<li>what exactly needs to fixed</li>



<li>what the <code>ROI</code> (return of investment) of each fix is &#8211; to focus on fixes giving the biggest improvement</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">I&#8217;m going to use those tools to see</p>



<ul class="wp-block-list">
<li>What the user perceived performance is</li>



<li>How to fix performance</li>
</ul>



<p class="wp-block-paragraph">Let&#8217;s start with website 1</p>



<h2 class="wp-block-heading"><code>PageSpeed insights</code> website 1</h2>



<p class="wp-block-paragraph">Let&#8217;s see what a popular tool says about performance of website https://donorperfect.com. That&#8217;s just a sample website that was sent to me during early phase of developing <code>performance explainer</code> to check what is says about performance of this website.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="744" height="1024" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-pagespeed-1-744x1024.png" alt="donorperfect.com - PageSpeed insights scoring" class="wp-image-209" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-pagespeed-1-744x1024.png 744w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-pagespeed-1-218x300.png 218w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-pagespeed-1-768x1057.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-pagespeed-1.png 896w" sizes="(max-width: 744px) 100vw, 744px" /></figure>



<p class="wp-block-paragraph">It says overall performance is poor. <code>FCP</code>, which is our focus in this blog post, is scored medium.</p>



<p class="wp-block-paragraph">Let&#8217;s take a look at <code>FCP</code> improvement suggestions from <code>PageSpeed insights</code>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="975" height="966" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-all.png" alt="" class="wp-image-210" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-all.png 975w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-all-300x297.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-all-150x150.png 150w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-all-768x761.png 768w" sizes="(max-width: 975px) 100vw, 975px" /></figure>



<h3 class="wp-block-heading">Problem 1: There are render blocking resources slowing down FCP</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="971" height="524" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-1.png" alt="" class="wp-image-212" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-1.png 971w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-1-300x162.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-1-768x414.png 768w" sizes="(max-width: 971px) 100vw, 971px" /></figure>



<p class="wp-block-paragraph">It says potential saving is 1,050 ms. That would be a huge <code>FCP</code> boost and much better use experience when fixes applied!</p>



<p class="wp-block-paragraph"><strong>So as a developer you might think: if I or my team puts an effort to fix blocking resources, performance will be fixed. Right?</strong> More on that later <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<h3 class="wp-block-heading">Problem 2: big images</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="877" height="742" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-suggested-images-fix.png" alt="" class="wp-image-213" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-suggested-images-fix.png 877w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-suggested-images-fix-300x254.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-pagespeed-insights-fcp-suggested-images-fix-768x650.png 768w" sizes="(max-width: 877px) 100vw, 877px" /></figure>



<p class="wp-block-paragraph"><strong>Ok. Looks easy. If images are compressed more, those should be sent faster and should speed up FCP. Right?</strong></p>



<p class="wp-block-paragraph">At this point a developer trying to improve a website might think:</p>



<ul class="wp-block-list">
<li>It&#8217;s clear how to fix performance</li>



<li>And a there might be a shy thought <em>When I apply the fix, how do I know it really improved <code>FCP</code>?</em>
<ul class="wp-block-list">
<li><code>PageSpeed insights</code> does not aswer this question before the fix.</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Is the performance tool job done? Well, if the goal is to actually improve performance, that&#8217;s merely a beginning of the job. After the fix developer needs to know if performance was really fixed. That requires measuring the system again. The tool needs to be a part of development cycle.</p>



<h3 class="wp-block-heading">Hold on. Let&#8217;s use much more time effective approach. <code>performance explainer</code> in action</h3>



<p class="wp-block-paragraph">First: take many samples and see what the performance really is.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="445" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-benchmark-1024x445.png" alt="" class="wp-image-214" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-benchmark-1024x445.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-benchmark-300x130.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-benchmark-768x334.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-benchmark.png 1311w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Let&#8217;s apply acceptance criteria: For 99% of visits, FCP should be below 1s.</p>



<p class="wp-block-paragraph">Is it achieved?</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="536" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-acceptance-criteria-1024x536.png" alt="" class="wp-image-215" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-acceptance-criteria-1024x536.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-acceptance-criteria-300x157.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-acceptance-criteria-768x402.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donofperfect-fcp-acceptance-criteria.png 1306w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Unfortunately not. Within 150 samples, FCP below 1s was never experienced.</p>



<p class="wp-block-paragraph">Let&#8217;s take a look at FCP across all samples on a percentile chart. What&#8217;s the latency user experiences?</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="662" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-distribution-percentiles-1024x662.png" alt="" class="wp-image-216" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-distribution-percentiles-1024x662.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-distribution-percentiles-300x194.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-distribution-percentiles-768x496.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-fcp-distribution-percentiles.png 1306w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Now you can see the big picture what&#8217;s going on at this website. 2.3s as suggested by <code>PageSpeed insights</code> never happened. Maybe <code>PageSpeed insights</code> analyzed samples when that indeed happened?</p>



<h3 class="wp-block-heading">Let&#8217;s apply fixes suggested by <code>PageSpeed insights</code> with a no-code experiments and see if <code>FCP</code> is fixed.</h3>



<p class="wp-block-paragraph"><code>performance-explainer</code> can make a no code experiments in the real browser to answer question: &#8220;<em>how much boosting particular requests impacts the measurement?</em>&#8220;. In this case &#8211; How much will it improve <code>FCP</code>?</p>



<p class="wp-block-paragraph">So let&#8217;s pick requests too boost.</p>



<h4 class="wp-block-heading">Boost render blocking resources suggested by <code>PageSpeed</code> to simulate the fix without any coding</h4>



<p class="wp-block-paragraph">What if I speed up those requests to a possible maximum? For example, if original request in the browser takes 400ms, it&#8217;s possible to cut down the latency in experiment to ~50ms. This way you can see what would happen if you changed the production system.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1302" height="781" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-multi-boost-render-blocking-resources.png" alt="" class="wp-image-217" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-multi-boost-render-blocking-resources.png 1302w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-multi-boost-render-blocking-resources-300x180.png 300w" sizes="(max-width: 1302px) 100vw, 1302px" /></figure>



<p class="wp-block-paragraph">Ok, go!</p>



<p class="wp-block-paragraph">A few minutes later the result is ready. 400 baseline measurements (original website) compared to 400 experiment measurements (selected resourced served to browser almost instantly).<strong><br> <br> What&#8217;s the result? Does implementing <code>PageSpeed insights</code> suggestions would fix FCP? No. Developers would work on something that doesn&#8217;t improve it<br></strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="311" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pageinsight-suggested-resources-fix-1024x311.png" alt="" class="wp-image-218" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pageinsight-suggested-resources-fix-1024x311.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pageinsight-suggested-resources-fix-300x91.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pageinsight-suggested-resources-fix-768x233.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pageinsight-suggested-resources-fix.png 1322w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">If you speed up those requests by 75-88% those will have no impact on <code>FCP</code>. In production it would mean either actually sending them faster or compressing. Neither would help fixing <code>FCP</code>.</p>



<p class="wp-block-paragraph">Depending on the product, company and the developers team &#8211; fixing performance might take anything from a few hours to a few weeks. So in case of a false signal, a lot of time and money could be wasted.</p>



<h4 class="wp-block-heading">Another <code>PageSpeed insights</code> hint is to fix images size. Let&#8217;s make a no-code experiment and boost sending images</h4>



<p class="wp-block-paragraph">Wha&#8217;t the result of boosting images that are supposed to improve FCP?</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1309" height="535" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pagespeed-insight-suggested-images-fix.png" alt="" class="wp-image-219" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pagespeed-insight-suggested-images-fix.png 1309w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-apply-pagespeed-insight-suggested-images-fix-300x123.png 300w" sizes="(max-width: 1309px) 100vw, 1309px" /></figure>



<p class="wp-block-paragraph">Note images are boosted almost 100%. That means those are almost instantly available for the browser yet it would have no impact on <code>FCP</code>.</p>



<p class="wp-block-paragraph"><strong>Devs would again work on something not improving FCP!</strong></p>



<h4 class="wp-block-heading">So what will actually improve FCP?</h4>



<p class="wp-block-paragraph">This particular website makes ~120 requests. Which one impacts <code>FCP</code>?</p>



<p class="wp-block-paragraph">It&#8217;s possible to tell with a static analysis. But which one has impact strong enough to make it <strong>meaningful and worth fixing</strong>?</p>



<p class="wp-block-paragraph">It&#8217;s impossible to tell without statistical analysis based on taking samples from real system. Which means using browser, just like user does.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="697" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-browser-waterfall-p90-1024x697.png" alt="" class="wp-image-220" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-browser-waterfall-p90-1024x697.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-browser-waterfall-p90-300x204.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-browser-waterfall-p90-768x523.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfect-browser-waterfall-p90.png 1300w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Some of requests are not even ever started before <code>FCP</code> across all samples &#8211; that means there are requests very likely to be irrelevant for measurement. But you can&#8217;t tell that doing 1 or a few checks. If you take hundreds of samples, you can start making conclusions how tested system really behaves.</p>



<p class="wp-block-paragraph">&#8220;<em><code>PageSpeed</code> shows suggestions that do not help fixing <code>FCP</code>. What to do now?</em> &#8220;</p>



<p class="wp-block-paragraph"><strong>Request boos exploration for the rescue!</strong></p>



<p class="wp-block-paragraph">I&#8217;ve worked really hard to implement request boost exploration in <code>performance explainer</code>.</p>



<p class="wp-block-paragraph">The methodology is the following:</p>



<ul class="wp-block-list">
<li>For every single request browser makes at given website</li>



<li>In the real browser simulate request boost up from 10 to 100% (incrementally)</li>



<li>Take hundreds of samples and apply statistics to see what&#8217;s the noise and what&#8217;s the true impact
<ul class="wp-block-list">
<li>It&#8217;s not using production system, everything happens in the browsers with requests fulfilled with controlled latencies</li>
</ul>
</li>



<li>Tell if it&#8217;s worth speeding up or not</li>
</ul>



<p class="wp-block-paragraph">Instead of guessing what to do, let the tooling figure out what&#8217;s worth fixing. It might take some time, but the results are accurate.</p>



<p class="wp-block-paragraph">The lower the measurement latency impact, the better.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="752" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfekt-actual-fcp-fix-1024x752.png" alt="" class="wp-image-222" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfekt-actual-fcp-fix-1024x752.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfekt-actual-fcp-fix-300x220.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfekt-actual-fcp-fix-768x564.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/donorperfekt-actual-fcp-fix.png 1317w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Are those easy fixes? Myabe it&#8217;s just a matter of deferring the js resource or making it async. I don&#8217;t know. Latency fixes are often difficult. That&#8217;s something that now developers can figure out.</p>



<p class="wp-block-paragraph">Huge part of the job is already done &#8211; knowing what to improve. The more first request from above table is sped up, the better <code>FCP</code> is. And that&#8217;s where the biggest <code>ROI</code> for improving <code>FCP</code> is. You could also speed up main site, but the <code>ROI</code> there is smaller.</p>



<h3 class="wp-block-heading">Main focus of this blog post is FCP, but let&#8217;s take at LCP (Largest Contentful Paint) also. How to improve it?</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="675" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/blog-post-pagespeed-insights-fcp-actual-lcp-fix-1024x675.png" alt="" class="wp-image-221" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/blog-post-pagespeed-insights-fcp-actual-lcp-fix-1024x675.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/blog-post-pagespeed-insights-fcp-actual-lcp-fix-300x198.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/blog-post-pagespeed-insights-fcp-actual-lcp-fix-768x506.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/blog-post-pagespeed-insights-fcp-actual-lcp-fix.png 1333w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><code>LCP</code> has a different bottleneck. It&#8217;s an image, with maximum possible improvement opportunity 65%. What improves LCP might not improve FCP (as in this case). Because it &#8216;s a different goal.</p>



<p class="wp-block-paragraph">Note that there is better <code>LCP</code> when image is sped up 80% than 99%. Why? It sounds counterintuitive.</p>



<p class="wp-block-paragraph">Because there are request races in the browser.</p>



<div class="wp-block-kevinbatdorf-code-block-pro padding-bottom-disabled cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:14px;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * 14px);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#2e3440"><span style="background:#c8d0e0;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#2e3440">ANSI</span></span><span role="button" tabindex="0" data-code="// R1, R2, R3 - browser requests
// R1 is most likely to be a LCP bottleneck

R1 --------------------------------------------
R2 ------------------------------
R3 -------------------------------------

// after enough R1 boost LCP has no further improvements
// now R3 is most likely to be a LCP bottleneck
R1 ----------------------
R2 ------------------------------
R3 -------------------------------------" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #d8dee9ff">// R1, R2, R3 - browser requests</span></span>
<span class="line"><span style="color: #d8dee9ff">// R1 is most likely to be a LCP bottleneck</span></span>
<span class="line"></span>
<span class="line"><span style="color: #d8dee9ff">R1 --------------------------------------------</span></span>
<span class="line"><span style="color: #d8dee9ff">R2 ------------------------------</span></span>
<span class="line"><span style="color: #d8dee9ff">R3 -------------------------------------</span></span>
<span class="line"></span>
<span class="line"><span style="color: #d8dee9ff">// after enough R1 boost LCP has no further improvements</span></span>
<span class="line"><span style="color: #d8dee9ff">// now R3 is most likely to be a LCP bottleneck</span></span>
<span class="line"><span style="color: #d8dee9ff">R1 ----------------------</span></span>
<span class="line"><span style="color: #d8dee9ff">R2 ------------------------------</span></span>
<span class="line"><span style="color: #d8dee9ff">R3 -------------------------------------</span></span></code></pre><span style="display:flex;align-items:flex-end;padding:10px;width:100%;justify-content:flex-end;background-color:#2e3440ff;color:#c8d0e0;font-size:12px;line-height:1;position:relative">ANSI</span></div>



<p class="wp-block-paragraph">Systems don&#8217;t behave deterministic, that&#8217;s why hundreds of samples need to be taken. There is a lot of going on in the browser. If you cut off latency of a single request enough, you&#8217;re going to see the improvement and after that new bottleneck might be uncovered.</p>



<p class="wp-block-paragraph">That&#8217;s a lo of knowledge, I&#8217;m glad you&#8217;re still here <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph">Now let&#8217;s move on to</p>



<h2 class="wp-block-heading">PageSpeed insights: website 2</h2>



<p class="wp-block-paragraph">I feel at the moment of writing my wordpress blog you&#8217;re just at is not fast. So let&#8217;s just measure it.</p>



<h3 class="wp-block-heading">What does PageSpeed insight say?</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="745" height="1024" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-pagespeed-insights-745x1024.png" alt="" class="wp-image-223" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-pagespeed-insights-745x1024.png 745w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-pagespeed-insights-218x300.png 218w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-pagespeed-insights-768x1055.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-pagespeed-insights.png 882w" sizes="(max-width: 745px) 100vw, 745px" /></figure>



<p class="wp-block-paragraph">It says 1.8s for <code>FCP</code>, 6.2s for <code>LCP</code>. It could be better.</p>



<p class="wp-block-paragraph">However does it mean every user experiences FCP 1.8s? Or maybe that&#8217;s the worst case? Or the best?</p>



<p class="wp-block-paragraph">How about fixes?</p>



<p class="wp-block-paragraph">It points initial server response time could be better as it&#8217;s 1 140 ms</p>



<ul class="wp-block-list">
<li>Is it where most improvement can be made? I don&#8217;t know but it&#8217;s the biggest latency shown on the list.</li>



<li>Other fixes show potential [kb] savings.
<ul class="wp-block-list">
<li>What does it mean in terms of latency? How much will it improve FCP? Is it worth investing my time to apply fixes there?</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">I value my time. I need data telling me what should be improved and in what order, not only what&#8217;s wrong without even knowing if it will help.</p>



<h3 class="wp-block-heading">What does <code>performance explainer</code> <code>FCP</code> benchmark say?</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="605" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-benchmark-1024x605.png" alt="" class="wp-image-224" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-benchmark-1024x605.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-benchmark-300x177.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-benchmark-768x454.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-benchmark.png 1311w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It says user never experiences the desired FCP below or equal 1s.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="638" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-phases-bottleneck-1024x638.png" alt="" class="wp-image-225" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-phases-bottleneck-1024x638.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-phases-bottleneck-300x187.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-phases-bottleneck-768x479.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-phases-bottleneck.png 1311w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It also says <code>TTFB</code> (<code>Time To First Byte</code>) is where 72% of time user is waiting for <code>FCP</code> and that it needs to be sped up 54.55% to meet acceptance criteria and have 99% latencies below 1s.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="662" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-distribution-percentiles-1024x662.png" alt="" class="wp-image-226" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-distribution-percentiles-1024x662.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-distribution-percentiles-300x194.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-distribution-percentiles-768x497.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-distribution-percentiles.png 1310w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><code>FCP</code> takes from 1326 ms to 4807 ms across 150 measurements. Ouch. I want to give my readers a better experience.</p>



<p class="wp-block-paragraph">FCP at 1.8s level shown in <code>PageSpeed</code> didn&#8217;t look that bad.</p>



<p class="wp-block-paragraph">So let&#8217;s figure out ROIs using <code>request boost exploration</code> in <code>performance explainer</code></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="518" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-actual-fcp-fix-1024x518.png" alt="" class="wp-image-227" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-actual-fcp-fix-1024x518.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-actual-fcp-fix-300x152.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-actual-fcp-fix-768x389.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-actual-fcp-fix.png 1316w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The only fix worth investing is fixing <code>TTFB</code>. Not resources mentioned by <code>PageSpeed insights</code>.</p>



<p class="wp-block-paragraph">I&#8217;m no wordpress expert, but I thought &#8220;<em>How about caching the whole response to spend less time on producing HTML? There must be some plugins for caching</em>&#8220;</p>



<p class="wp-block-paragraph">So I installed <code>WP Fastest Cache</code> plugin, turned it on with default settings hoping to improve <code>TTFB</code> which is a bottleneck for <code>FCP</code>. Immediately I had questions in my mind.</p>



<ul class="wp-block-list">
<li>Did it improve performance?</li>



<li>How would I know it?</li>



<li>Would refreshing page in the browser give the <em>feeling</em> it&#8217;s better?</li>



<li>What if it gave the <em>feeling</em> it&#8217;s better, but if I refreshed the page 10 more times it would actually give <em>feeling</em> it&#8217;s worse?</li>
</ul>



<p class="wp-block-paragraph">Let the data speak. And what does it say after taking samples and comparing it to samples before installing cache plugin?</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="231" src="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-cache-plugin-experiment-1024x231.png" alt="" class="wp-image-228" srcset="http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-cache-plugin-experiment-1024x231.png 1024w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-cache-plugin-experiment-300x68.png 300w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-cache-plugin-experiment-768x173.png 768w, http://deploymenteveryday.com/wp-content/uploads/2024/08/deployment-every-day-fcp-cache-plugin-experiment.png 1300w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><code>FCP</code> did not improve at all. Without measuring it after installing plugin and comparing to baseline (no plugin installed) I&#8217;d be pretty sure performance is better. While my readers would feel no difference at all.</p>



<p class="wp-block-paragraph">Additional plugin would only add complexity to the system. And I would think it&#8217;s improving the situation. I removed the plugin immediately.</p>



<p class="wp-block-paragraph">Now I have more ideas for speeding up <code>TTFB</code>.</p>



<ul class="wp-block-list">
<li>better hosting</li>



<li>different caching plugin</li>



<li>different skin</li>



<li>&#8230; and there might be 10 more ideas</li>
</ul>



<p class="wp-block-paragraph">However that&#8217;s a typical <code>trial and error</code> fixing methodology when no data is available for showing bottleneck in more details.</p>



<p class="wp-block-paragraph"><strong>It&#8217;s easy to produce ideas. It&#8217;s expensive to implement them. And it&#8217;s risky because it might fix nothing.</strong></p>



<p class="wp-block-paragraph">When you think a fix helped (while it didn&#8217;t), unnecessary complexity grows over time. It contributes to a growing production systems maintenance cost.</p>



<p class="wp-block-paragraph">Since I know the bottleneck is PHP backend, what would really help is to have profiler samples. Or maybe some plugin showing what&#8217;s slow on wordpress backend if there is such one.</p>



<p class="wp-block-paragraph">It would show where time is spent when request is made from the browser. In another words &#8211; data allowing understand better the root cause would appear.</p>



<p class="wp-block-paragraph">If I knew PHP backend bottleneck, there would be no guessing what to fix. As a result</p>



<ul class="wp-block-list">
<li>much quicker fix delivery</li>



<li>less time spent</li>



<li>no unjustifiable complexity added for solutions that were supposed to fix performance, while fixing nothing</li>
</ul>



<h2 class="wp-block-heading"><code>PageSpeed isights</code> VS <code>performance explainer</code> summary</h2>



<p class="wp-block-paragraph"><code>PageSpeed insights</code></p>



<ul class="wp-block-list">
<li>It shows improvement ideas. Those look good and worth spending time on
<ul class="wp-block-list">
<li>But in reality those fixes might not fix performance at all</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph"><code>performance explainer</code></p>



<ul class="wp-block-list">
<li>It&#8217;s showing the whole picture and how often user experiences good and bad performance.
<ul class="wp-block-list">
<li>Thanks to to hundreds of samples taken</li>
</ul>
</li>



<li>it does not present good sounding fixes ideas. It presents the ones that actually impact performance</li>
</ul>



<h3 class="wp-block-heading">Do you want to know if your website (on premise product too) is fast enough and having it fixed if needed?</h3>



<p class="wp-block-paragraph">Reach me at mikolaj.grzaslewicz@gmail.com if you want to have performance of your website fixed via consultations. My goal is to have <code>performance explainer</code> available as a service to support more customers.</p><p>The post <a href="http://deploymenteveryday.com/no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments/">No More Guesswork: Validating what improves First Contentful Paint upfront with No-Code Experiments</a> first appeared on <a href="http://deploymenteveryday.com">Deployment Every Day</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>http://deploymenteveryday.com/no-more-guesswork-validating-what-improves-first-contentful-paint-upfront-with-no-code-experiments/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
