<?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: Amr Osama</title>
    <description>The latest articles on DEV Community by Amr Osama (@amr_osama99).</description>
    <link>https://dev.to/amr_osama99</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%2F4015474%2F24f9915c-17bf-403c-8130-c31f5441f158.png</url>
      <title>DEV Community: Amr Osama</title>
      <link>https://dev.to/amr_osama99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amr_osama99"/>
    <language>en</language>
    <item>
      <title>How I Approach WordPress Core Web Vitals Before Rebuilding Anything</title>
      <dc:creator>Amr Osama</dc:creator>
      <pubDate>Sun, 05 Jul 2026 11:47:49 +0000</pubDate>
      <link>https://dev.to/amr_osama99/how-i-approach-wordpress-core-web-vitals-before-rebuilding-anything-2hk0</link>
      <guid>https://dev.to/amr_osama99/how-i-approach-wordpress-core-web-vitals-before-rebuilding-anything-2hk0</guid>
      <description>&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://amr-osama.net/how-to-improve-wordpress-core-web-vitals/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Famr-osama.net%2Fwp-content%2Fuploads%2F2026%2F06%2Fhow-to-improve-wordpress-core-web-vitals-illustration.png" height="420" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://amr-osama.net/how-to-improve-wordpress-core-web-vitals/" rel="noopener noreferrer" class="c-link"&gt;
            How to Improve WordPress Core Web Vitals (2026)
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            A senior developer's practical guide to improving WordPress Core Web Vitals — LCP, INP, and CLS — often without a full rebuild.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Famr-osama.net%2Fwp-content%2Fthemes%2Famros%2Fassets%2Fbrand%2Ffavicon.svg" width="48" height="48"&gt;
          amr-osama.net
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Most slow WordPress sites do not need a full rebuild first.&lt;/p&gt;

&lt;p&gt;They need a proper performance diagnosis.&lt;/p&gt;

&lt;p&gt;When I audit a WordPress site, I usually start with three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What is delaying the largest visible content?&lt;/li&gt;
&lt;li&gt;What JavaScript is making interaction feel slow?&lt;/li&gt;
&lt;li&gt;What layout shifts are happening after the page starts loading?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Those map directly to the three Core Web Vitals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LCP&lt;/strong&gt;: how fast the main content appears&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;INP&lt;/strong&gt;: how responsive the page feels&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLS&lt;/strong&gt;: how visually stable the layout is&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Start With LCP
&lt;/h2&gt;

&lt;p&gt;For WordPress sites, LCP problems usually come from one of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;oversized hero images&lt;/li&gt;
&lt;li&gt;render-blocking CSS&lt;/li&gt;
&lt;li&gt;slow hosting response time&lt;/li&gt;
&lt;li&gt;too many plugins loading assets early&lt;/li&gt;
&lt;li&gt;sliders or builders delaying the first meaningful section&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before touching plugins, I check the actual LCP element. If it is the hero image, I optimize image size, preload strategy, responsive sources, and server delivery.&lt;/p&gt;

&lt;p&gt;If it is text, I look at CSS, fonts, caching, and server response.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Reduce JavaScript Pressure For INP
&lt;/h2&gt;

&lt;p&gt;INP is where many WordPress sites struggle, especially sites using heavy page builders, tracking scripts, chat widgets, popups, and large plugin stacks.&lt;/p&gt;

&lt;p&gt;The fix is not always “remove JavaScript.”&lt;/p&gt;

&lt;p&gt;Usually, I look for scripts that can be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;delayed&lt;/li&gt;
&lt;li&gt;loaded only on the pages that need them&lt;/li&gt;
&lt;li&gt;replaced with lighter code&lt;/li&gt;
&lt;li&gt;moved away from the initial interaction path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A WooCommerce product page, for example, should not load the same assets as a blog post.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fix CLS With Stable Layouts
&lt;/h2&gt;

&lt;p&gt;CLS is often caused by simple layout issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;images without dimensions&lt;/li&gt;
&lt;li&gt;ads or embeds loading late&lt;/li&gt;
&lt;li&gt;fonts swapping badly&lt;/li&gt;
&lt;li&gt;sticky headers changing size&lt;/li&gt;
&lt;li&gt;dynamic banners appearing above content&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The boring fix is usually the right fix: reserve space before things load.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Measure Before And After
&lt;/h2&gt;

&lt;p&gt;Performance work should not be guesswork.&lt;/p&gt;

&lt;p&gt;I like to capture the starting point first, then measure again after each meaningful change. Otherwise, it is too easy to install five optimization plugins and never know what actually helped.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Practical Order
&lt;/h2&gt;

&lt;p&gt;For most WordPress sites, I follow this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Measure real issues first&lt;/li&gt;
&lt;li&gt;Identify the worst template or page type&lt;/li&gt;
&lt;li&gt;Fix images and LCP delivery&lt;/li&gt;
&lt;li&gt;Reduce unnecessary scripts&lt;/li&gt;
&lt;li&gt;Stabilize layout shifts&lt;/li&gt;
&lt;li&gt;Review hosting and caching&lt;/li&gt;
&lt;li&gt;Only consider a rebuild if the architecture is the actual problem&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A rebuild can help, but it should be the conclusion of the audit, not the first guess.&lt;/p&gt;

&lt;p&gt;I wrote more about my WordPress performance process here:&lt;br&gt;&lt;br&gt;
&lt;a href="https://amr-osama.net/services/wordpress-performance-optimization/" rel="noopener noreferrer"&gt;https://amr-osama.net/services/wordpress-performance-optimization/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this is my main site if you want to see the kind of WordPress and WooCommerce work I focus on:&lt;br&gt;&lt;br&gt;
&lt;a href="https://amr-osama.net/" rel="noopener noreferrer"&gt;https://amr-osama.net/&lt;/a&gt;&lt;/p&gt;

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