<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Siraj A.</title>
    <description>The latest articles on DEV Community by Siraj A. (@sirajahmadzai).</description>
    <link>https://dev.to/sirajahmadzai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3370433%2F2c36307a-a1d5-43b4-9912-90b22af9a26c.jpeg</url>
      <title>DEV Community: Siraj A.</title>
      <link>https://dev.to/sirajahmadzai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sirajahmadzai"/>
    <language>en</language>
    <item>
      <title>I tested my own WordPress plugin against two cache plugins and published the null result</title>
      <dc:creator>Siraj A.</dc:creator>
      <pubDate>Tue, 17 Nov 2026 19:45:46 +0000</pubDate>
      <link>https://dev.to/sirajahmadzai/i-tested-my-own-wordpress-plugin-against-two-cache-plugins-and-published-the-null-result-2adi</link>
      <guid>https://dev.to/sirajahmadzai/i-tested-my-own-wordpress-plugin-against-two-cache-plugins-and-published-the-null-result-2adi</guid>
      <description>&lt;p&gt;I publish a small WordPress plugin on wordpress.org. Peakspire Font Loading Optimizer does one thing: it preloads locally hosted WOFF2 files, capped at four, so the first font file starts downloading earlier. Its readme says it is safe to use alongside cache plugins. In November 2026, at version 1.2.0 and 400 downloads, I stopped trusting my own sentence and tested it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;Preload tags live in the head. Cache plugins rewrite the head: they minify HTML, combine CSS, and serve stored copies of the page. Any of those steps could drop, mangle, or duplicate a preload tag. So the claim "cache plugin safe" is really six test conditions: my plugin on and off, crossed with no cache, W3 Total Cache, and WP Fastest Cache.&lt;/p&gt;

&lt;p&gt;The test: those six conditions in a local lab. WordPress 6.9 on PHP 8.3, Apache, no other plugins. On one side W3 Total Cache 2.11.0 with page cache, HTML minification, CSS minify and combine all verified active. On the other WP Fastest Cache 1.5.5 with its cache, minify HTML, minify CSS, and combine CSS options verified active. Then 40 interleaved Lighthouse mobile runs across the cells, alternating conditions so a slow afternoon could not fake a win.&lt;/p&gt;

&lt;p&gt;Getting WP Fastest Cache to actually turn on was its own lesson. Its master toggle checks for the literal string "on" from the settings form, and even correct form posts dropped the status key. The reliable path was a direct option write in the exact persisted shape. I only believed it was running when the cache files materialized and the page bytes changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What held
&lt;/h2&gt;

&lt;p&gt;The headline finding is boring, which is the point. The preload tags survived every cell. Through W3 Total Cache's cached, minified, combined renders and through WP Fastest Cache's, the tags came out byte for byte intact, crossorigin attribute included. On a theme that already self-preloads, the plugin added nothing, which is the correct behavior: no duplication, no reordering.&lt;/p&gt;

&lt;p&gt;The speed finding: the first font file finished about 620 ms earlier with the plugin on, roughly 27 percent. That is the whole performance claim, and it matches what the plugin is for.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did not move
&lt;/h2&gt;

&lt;p&gt;Largest Contentful Paint medians differed by less than 100 ms across all conditions, which I read as no clear improvement either way. I have no LCP win to sell. Preloading the font earlier helped the font fetch, but that earlier fetch did not translate into a clear LCP improvement in this test. Publishing a null result feels odd when the download graph is the only audience, but a self-audit that only reports its wins is marketing. This one reports both.&lt;/p&gt;

&lt;p&gt;The test has limits and they are on the page: one theme, one lab host, free tiers of both optimizers, local network. I am not claiming your stack behaves the same. The method is the deliverable: name the claim, build the matrix, interleave the runs, publish the cells including the flat ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a 400-download plugin deserves this
&lt;/h2&gt;

&lt;p&gt;Nobody was asking. That is exactly why it was worth doing. The WordPress ecosystem runs on readme promises, and the cheapest trust signal a small author can offer is a public test of their own promise with the negative finding left in. The full matrix, the run logs, and the limits are on the proof page: peakspire.ca/font-plugin-cache-compat-test/&lt;/p&gt;

&lt;p&gt;If you ship a plugin with a compatibility claim, the test is an afternoon plus a lab container. The null result costs nothing but the afternoon.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>performance</category>
      <category>wordpress</category>
      <category>testing</category>
    </item>
    <item>
      <title>Single-Run Lab Audits of 96 Local Business Sites: What the Numbers Actually Say</title>
      <dc:creator>Siraj A.</dc:creator>
      <pubDate>Sun, 15 Nov 2026 01:14:15 +0000</pubDate>
      <link>https://dev.to/sirajahmadzai/single-run-lab-audits-of-96-local-business-sites-what-the-numbers-actually-say-4h34</link>
      <guid>https://dev.to/sirajahmadzai/single-run-lab-audits-of-96-local-business-sites-what-the-numbers-actually-say-4h34</guid>
      <description>&lt;p&gt;In March 2026 I ran a PageSpeed Insights API audit on 96 Ottawa-area service business websites: plumbers, electricians, HVAC companies, cleaners, contractors. I re-ran the same panel on November 3, 2026. This post covers what I measured, how, what I found, and where the method falls short.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I measured
&lt;/h2&gt;

&lt;p&gt;I built the list from Ottawa-area business directory listings across 16 localities, covering home and trade service categories. Directory sourcing means the panel represents businesses that list publicly - it is not a census of every business in the city. I audited 97 sites on March 18, 2026, then excluded my own agency's site from every statistic, so all figures are computed on the remaining 96.&lt;/p&gt;

&lt;p&gt;Each site got one PageSpeed Insights API v5 lab run, mobile and desktop, using standard Lighthouse mobile emulation. Published results are aggregate-only and do not include business names or site URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I found in March
&lt;/h2&gt;

&lt;p&gt;The headline number: median mobile PageSpeed score of 65.5 out of 100. Half the panel sits below that, half above.&lt;/p&gt;

&lt;p&gt;The distribution is what I found more interesting than the median:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mobile score&lt;/th&gt;
&lt;th&gt;Sites&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;90-100&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;10.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50-89&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;td&gt;69.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Under 50&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;19.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most sites scored in Lighthouse's 50-89 "needs improvement" band. Ten reached the 90-100 "good" band, and nineteen fell below 50 into the "poor" band. These are lab performance classifications, not direct measurements of customer experience.&lt;/p&gt;

&lt;p&gt;Desktop median performance was 86, compared with 65.5 on mobile - a 20.5-point difference under the respective lab test conditions. This audit did not measure the businesses' actual visitor device mix.&lt;/p&gt;

&lt;p&gt;Four specific defects showed up again and again:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unused JavaScript and CSS.&lt;/strong&gt; 66 of 96 sites (68.8%) had JavaScript or CSS flagged as unused during the audited page load. Among flagged sites, the estimated time cost was a median of roughly 460ms for JavaScript and 440ms for CSS. Code unused during a Lighthouse run may still support later interactions, so these are investigation leads, not confirmed waste.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redirect chains.&lt;/strong&gt; 47 of 96 sites (49%) were flagged for avoidable redirect hops, median estimated cost around 780ms per flagged site. These are Lighthouse heuristic flags with estimated savings, not measured page-load measurements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Largest Contentful Paint.&lt;/strong&gt; 72 of the 96 sites with a measurable value took longer than 4 seconds to paint their largest element - the threshold Google labels "poor" for LCP (the "good" threshold is 2.5s, "needs improvement" runs to 4.0s). The median was 6.3 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layout stability was the exception.&lt;/strong&gt; Median Cumulative Layout Shift of 0.004, with only 3 of 96 sites exceeding Google's 0.1 CLS threshold (the "poor" threshold is 0.25). Layout shifts during these lab runs were generally low; this does not establish layout stability throughout real user sessions.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Q4 re-measure
&lt;/h2&gt;

&lt;p&gt;On November 3, 2026 I re-ran the same panel. 88 of the 96 cohort sites produced a measurable mobile score. Of the 8 that did not: five domains no longer resolve at all (a 5.2% mortality rate in about seven and a half months), one failed measurement outright, and two more return HTTP errors at their bare root and did not yield a mobile score (five other root-error sites did measure fine once their redirects were followed). Among the 88 sites measured in November, the median mobile score was 71.0, compared with 65.5 across the 96 measured in March. On the paired subset of 88 sites measurable in both editions, the 90+ share rose from 9.1% to 26.1%, and the under-50 share fell from 20.5% to 15.9%.&lt;/p&gt;

&lt;p&gt;These summaries use different denominators and single-run measurements, so they do not establish how much individual sites improved or whether owners made changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limitations
&lt;/h2&gt;

&lt;p&gt;I want to be direct about what this data can and cannot claim, because benchmark posts usually are not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;These are single-run lab measurements.&lt;/strong&gt; One Lighthouse run per site, on one day. Run-to-run variance of a few points is normal for PageSpeed, so treat every exact value as indicative, not gospel. A 65.5 median is a solid cohort signal; a claim that any individual site scores exactly 63 rather than 67 is not supportable from this method. Medians and distributions over 96 sites absorb that noise far better than single scores do.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lab is not field.&lt;/strong&gt; These LCP figures describe this lab audit only. Google's field Core Web Vitals data - measured on real visitor devices, on real networks, weighted by actual traffic - can differ, sometimes a lot. A lab run tells you what a synthetic Moto-class device on a throttled connection experienced once. It is excellent for finding defects (unused code, redirect chains) and weaker for claiming what your customers experienced last Tuesday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Heuristics, not byte counts.&lt;/strong&gt; "Unused code" and "redirect" findings are Lighthouse heuristic flags with estimated time savings, not measured bytes. The estimates are useful for ranking fixes; they are not invoices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scope.&lt;/strong&gt; Directory-sourced panel, one city, one vertical cluster, aggregate-only reporting. I am not ranking or naming anyone - a slow score on a single-run audit is a lead, not a verdict.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I published the method alongside the numbers
&lt;/h2&gt;

&lt;p&gt;If you are benchmarking a local market, the numbers are only useful if the reader can reproduce or at least question the method. Every figure here traces to one PSI v5 lab run per site on a stated date. The full dataset, distribution tables, edition history, and citation formats live on the study's canonical page: &lt;a href="https://peakspire.ca/ottawa-website-benchmarks/" rel="noopener noreferrer"&gt;peakspire.ca/ottawa-website-benchmarks&lt;/a&gt;. This post carries a canonical URL pointing there so search engines treat the study page as the source of record.&lt;/p&gt;

&lt;p&gt;If you take one thing from this: if your site scores in the 50s or 60s on mobile, you are near the local median, not an outlier. The recurring diagnostics offer starting points for investigation, not a guaranteed score improvement or a conclusion about whether a rebuild is needed.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>seo</category>
      <category>canada</category>
    </item>
    <item>
      <title>Preloading Fonts Made Our WordPress Site Slower: The 0.9s LCP Lesson</title>
      <dc:creator>Siraj A.</dc:creator>
      <pubDate>Mon, 09 Nov 2026 15:51:54 +0000</pubDate>
      <link>https://dev.to/sirajahmadzai/preloading-fonts-made-our-wordpress-site-slower-the-09s-lcp-lesson-n6h</link>
      <guid>https://dev.to/sirajahmadzai/preloading-fonts-made-our-wordpress-site-slower-the-09s-lcp-lesson-n6h</guid>
      <description>&lt;h1&gt;
  
  
  Preloading Fonts Made Our WordPress Site Slower: The 0.9s LCP Lesson
&lt;/h1&gt;

&lt;p&gt;Everyone says preload your fonts. Nobody mentions the case where preloading makes Largest Contentful Paint worse by almost a full second. I measured it, then wrote a plugin rule to make sure it never happens again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;I run a small web design studio in Ottawa. Our theme, like a lot of hand-tuned WordPress themes, declares its fonts inline in the HTML head. A few months ago I was building a font-loading optimizer plugin: it finds the WOFF2 files your site actually uses, preloads them, adds &lt;code&gt;font-display: swap&lt;/code&gt;, and removes the render-blocking font requests.&lt;/p&gt;

&lt;p&gt;The first version preloaded everything it found. Inline declarations, external stylesheet declarations, all of it. That looked correct. Every performance guide says preloads go in the head, fonts are critical, done.&lt;/p&gt;

&lt;h2&gt;
  
  
  The measurement
&lt;/h2&gt;

&lt;p&gt;I ran the A/B on PageSpeed Insights mobile, three runs per state, same page, nothing else changed.&lt;/p&gt;

&lt;p&gt;The version with preloads on an inline-declaring theme came back with LCP roughly &lt;strong&gt;0.9 seconds worse&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Not better. Worse. By almost a second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it happens
&lt;/h2&gt;

&lt;p&gt;When a font is declared inline in the HTML head, the browser discovers it during the initial parse. It is already as early as it can possibly be. A preload hint for that same font does not make the browser fetch it earlier. What the preload does is add a second, parallel discovery path for a file the browser was already handling, plus the bandwidth priority competition that comes with it.&lt;/p&gt;

&lt;p&gt;On our theme, that competition pushed the actual LCP resource down the priority queue. The hero text waited on bandwidth that the duplicate preload was eating.&lt;/p&gt;

&lt;p&gt;The rule that fell out of the measurement:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Preload fonts that are declared in external stylesheets. Never preload fonts declared inline in the HTML head.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For external declarations the story is the opposite. The browser cannot know about those fonts until it has downloaded and parsed the whole CSS file. A preload hint there starts the font fetch at time zero, in parallel with the CSS download, instead of after the parse. That is where preloading earns its keep. I verified the timing in the network waterfall: with the plugin, font requests on external-CSS pages start alongside the CSS fetch instead of trailing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shipped
&lt;/h2&gt;

&lt;p&gt;The plugin now applies that rule before it emits anything:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find WOFF2 files referenced from enqueued external stylesheets (self-hosted, up to a static cap of 4 per page).&lt;/li&gt;
&lt;li&gt;Skip anything declared inline in the head. Not "deprioritize". Skip.&lt;/li&gt;
&lt;li&gt;Emit preloads with &lt;code&gt;font-display: swap&lt;/code&gt; only for the external set.&lt;/li&gt;
&lt;li&gt;Leave a short audit trail so you can see what it chose and why.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The A/B suite after the rule change: zero LCP regression on inline-declaring themes (the plugin correctly emits no preloads there), and parallel fetch timing verified on external-CSS pages. Our own site sits at 100 mobile PageSpeed with LCP between 0.93 and 1.1 seconds across our four key pages, and I am not willing to trade that for a checklist item.&lt;/p&gt;

&lt;p&gt;The cap at 4 matters too. I have seen plugins preload eight or nine font files because "more preloads equals more speed". On a normal site with two to four families, everything past the real set is pure bandwidth theft from the LCP resource.&lt;/p&gt;

&lt;h2&gt;
  
  
  The broader lesson
&lt;/h2&gt;

&lt;p&gt;Performance advice is almost always written for the average case. Your theme is not the average case. The only honest way to know what a change does to your LCP is to measure it on your own pages, before and after, more than once. A single PageSpeed run has noise in it. Three runs per state is the minimum I trust for a claim like "this made things faster".&lt;/p&gt;

&lt;p&gt;The specific trap here has a shape you can generalize: &lt;strong&gt;an optimization that duplicates work the browser already does is a cost, not an optimization.&lt;/strong&gt; Preloading an already-inline font. Preloading the LCP image that sits first in your markup. Hinting at resources the parser would find in the next ten milliseconds anyway. All the same trap.&lt;/p&gt;

&lt;p&gt;If you want to check whether your WordPress site has this problem, the quick test is to open your page source and search for &lt;code&gt;@font-face&lt;/code&gt; in the head. If your fonts are declared there, preloading them is not buying you anything. If they live in a &lt;code&gt;.css&lt;/code&gt; file, preloading the WOFF2 files is one of the cheapest LCP wins available.&lt;/p&gt;

&lt;p&gt;The plugin is &lt;a href="https://wordpress.org/plugins/peakspire-font-loading/" rel="noopener noreferrer"&gt;PeakSpire Font Loading Optimizer&lt;/a&gt; on wordpress.org. It collects nothing, phones home nowhere, and applies the inline-skip rule by default because that is the only version of it I could measure and stand behind.&lt;/p&gt;

&lt;p&gt;Have you measured a preload backfire on your own stack? I would like to hear how common this actually is outside WordPress.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>performance</category>
      <category>pagespeed</category>
      <category>plugin</category>
    </item>
    <item>
      <title>How I Got a WordPress Site from PageSpeed 54 to 100 (Step by Step)</title>
      <dc:creator>Siraj A.</dc:creator>
      <pubDate>Fri, 10 Apr 2026 02:08:02 +0000</pubDate>
      <link>https://dev.to/sirajahmadzai/how-i-got-a-wordpress-site-from-pagespeed-54-to-100-step-by-step-874</link>
      <guid>https://dev.to/sirajahmadzai/how-i-got-a-wordpress-site-from-pagespeed-54-to-100-step-by-step-874</guid>
      <description>&lt;p&gt;A client came to me with a WordPress site scoring 54 on Google PageSpeed Insights (mobile). Load time was 8 seconds. Core Web Vitals were all failing.&lt;/p&gt;

&lt;p&gt;Seven days later, the same site scored 100/100 on Performance, Accessibility, Best Practices, and SEO. Load time dropped to under 2 seconds.&lt;/p&gt;

&lt;p&gt;Here is exactly how I did it, step by step.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Starting Point
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PageSpeed Insights mobile score:&lt;/strong&gt; 54/100&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Largest Contentful Paint (LCP):&lt;/strong&gt; 6.2s&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total Blocking Time (TBT):&lt;/strong&gt; 1,800ms&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cumulative Layout Shift (CLS):&lt;/strong&gt; 0.32&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Load time:&lt;/strong&gt; 8+ seconds on a mobile connection&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The site was a standard WordPress build with Elementor, 12 plugins, unoptimized images, and render-blocking CSS/JS everywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 0: Understand the Scoring System
&lt;/h2&gt;

&lt;p&gt;Before touching any code, I read the &lt;a href="https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/" rel="noopener noreferrer"&gt;Lighthouse 10 scoring documentation&lt;/a&gt;. This matters because the five metrics are weighted differently:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Weight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Total Blocking Time (TBT)&lt;/td&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Largest Contentful Paint (LCP)&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cumulative Layout Shift (CLS)&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;First Contentful Paint (FCP)&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speed Index (SI)&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TBT alone is 30% of the score. That told me where to focus first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 1: Kill the JavaScript (TBT: 1,800ms to 0ms)
&lt;/h2&gt;

&lt;p&gt;The biggest win. I audited every enqueued script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;peakspire_dequeue_scripts&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;wp_deregister_script&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'jquery-migrate'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;wp_dequeue_script&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'elementor-waypoints'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;wp_dequeue_script&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'elementor-frontend'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;remove_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wp_head'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'print_emoji_detection_script'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wp_enqueue_scripts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'peakspire_dequeue_scripts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result: &lt;strong&gt;TBT dropped from 1,800ms to 0ms&lt;/strong&gt;. That alone jumped the score from 54 to ~75.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 2: Fix the Fonts (LCP: 6.2s to 2.8s)
&lt;/h2&gt;

&lt;p&gt;The site loaded three Google Font families (6 weights = ~75KB). On mobile 4G, these competed with main content for bandwidth.&lt;/p&gt;

&lt;p&gt;The fix: load fonts only on desktop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;769px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;@font-face&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;'Inter'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nl"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sx"&gt;url('/fonts/inter-v12-latin-regular.woff2')&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;'woff2'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="py"&gt;font-display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;swap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;'Inter'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;-apple-system&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;BlinkMacSystemFont&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;'Segoe UI'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Roboto&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mobile uses system font stack. Zero font downloads. LCP improved dramatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 3: Image Optimization (LCP: 2.8s to 1.8s)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Convert to WebP&lt;/strong&gt;: 60-70% smaller files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lazy load&lt;/strong&gt; below the fold&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explicit width/height&lt;/strong&gt; on every &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; (prevents CLS)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preload the hero&lt;/strong&gt; (LCP element):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"preload"&lt;/span&gt; &lt;span class="na"&gt;as=&lt;/span&gt;&lt;span class="s"&gt;"image"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"/hero.webp"&lt;/span&gt; &lt;span class="na"&gt;fetchpriority=&lt;/span&gt;&lt;span class="s"&gt;"high"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"image/webp"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Phase 4: CSS Delivery (FCP: 3.1s to 0.8s)
&lt;/h2&gt;

&lt;p&gt;Inline critical CSS, async-load the rest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
  &lt;span class="nd"&gt;:root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="py"&gt;--text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#1a1a2e&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="py"&gt;--bg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;system-ui&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;--text&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;min-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;60vh&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"preload"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"/style.css"&lt;/span&gt; &lt;span class="na"&gt;as=&lt;/span&gt;&lt;span class="s"&gt;"style"&lt;/span&gt; &lt;span class="na"&gt;onload=&lt;/span&gt;&lt;span class="s"&gt;"this.onload=null;this.rel='stylesheet'"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;FCP dropped from 3.1s to 0.8s.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Performance&lt;/td&gt;
&lt;td&gt;54&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accessibility&lt;/td&gt;
&lt;td&gt;82&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best Practices&lt;/td&gt;
&lt;td&gt;78&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SEO&lt;/td&gt;
&lt;td&gt;89&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LCP&lt;/td&gt;
&lt;td&gt;6.2s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.2s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TBT&lt;/td&gt;
&lt;td&gt;1,800ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0ms&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLS&lt;/td&gt;
&lt;td&gt;0.32&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The Non-Obvious Lesson
&lt;/h2&gt;

&lt;p&gt;After obvious fixes, the score stuck at 95-97. The breakthrough was the font strategy. Fonts only on desktop. Mobile saves 75KB on slow connections. That was the difference between 97 and 100.&lt;/p&gt;

&lt;p&gt;I run &lt;a href="https://peakspire.ca" rel="noopener noreferrer"&gt;PeakSpire&lt;/a&gt; in Ottawa, Canada. WordPress speed optimization for service businesses. Free speed audit: drop your URL in the comments.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>performance</category>
      <category>webdev</category>
      <category>lighthouse</category>
    </item>
  </channel>
</rss>
