<?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: Ansh Garg</title>
    <description>The latest articles on DEV Community by Ansh Garg (@marketingwithansh).</description>
    <link>https://dev.to/marketingwithansh</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%2F4249328%2Fc9ed3e63-145b-4c6e-91ce-d72cb9b5a607.jpg</url>
      <title>DEV Community: Ansh Garg</title>
      <link>https://dev.to/marketingwithansh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marketingwithansh"/>
    <language>en</language>
    <item>
      <title>How I Hit 98/100 PageSpeed on WordPress Without Heavy Speed Plugins (Pure HTML5 + Vanilla JS)</title>
      <dc:creator>Ansh Garg</dc:creator>
      <pubDate>Tue, 17 Nov 2026 09:33:57 +0000</pubDate>
      <link>https://dev.to/marketingwithansh/how-i-hit-98100-pagespeed-on-wordpress-without-heavy-speed-plugins-pure-html5-vanilla-js-5ee5</link>
      <guid>https://dev.to/marketingwithansh/how-i-hit-98100-pagespeed-on-wordpress-without-heavy-speed-plugins-pure-html5-vanilla-js-5ee5</guid>
      <description>&lt;p&gt;Most slow WordPress websites do not fail &lt;strong&gt;Core Web Vitals (LCP, INP, CLS)&lt;/strong&gt; because of cheap hosting. They fail because visual page builders (&lt;code&gt;Elementor&lt;/code&gt;, &lt;code&gt;Divi&lt;/code&gt;, &lt;code&gt;WPBakery&lt;/code&gt;) inject &lt;strong&gt;15–25 nested &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; wrappers per block&lt;/strong&gt;, load &lt;strong&gt;400KB+ of unused CSS/JS&lt;/strong&gt;, and trigger render-blocking jQuery chains.&lt;/p&gt;

&lt;p&gt;Installing caching plugins on top of a bloated DOM only masks the symptom. At &lt;strong&gt;&lt;a href="https://marketingwithansh.com/" rel="noopener noreferrer"&gt;MarketingWithAnsh&lt;/a&gt;&lt;/strong&gt;, we replaced page builders with a pure front-end architecture—semantic &lt;strong&gt;HTML5, Scoped CSS3, and zero-dependency Vanilla JavaScript&lt;/strong&gt;—inside standard WordPress.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TRADITIONAL BUILDER STACK (3.8s – 6.2s Load)
WordPress ──► Heavy Theme ──► 2,500+ DOM Nodes ──► 18+ Plugins ──► jQuery Block

PURE-CODE ARCHITECTURE (0.6s – 1.1s Load)
WordPress ──► Scoped HTML5/CSS3 (.ag-*) ──► Vanilla ES6 JS ──► Edge WebP + GPU Decode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Verified Production Benchmarks
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technical Metric&lt;/th&gt;
&lt;th&gt;Heavy Page-Builder Site&lt;/th&gt;
&lt;th&gt;Pure-Code WordPress Build&lt;/th&gt;
&lt;th&gt;Net Engineering Gain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Desktop PageSpeed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;54 – 72 / 100&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98 / 100&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;+26 to +44 pts&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mobile PageSpeed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;32 – 55 / 100&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;90 / 100&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;+35 to +58 pts&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total DOM Nodes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1,800 – 3,400&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&amp;lt; 450&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~82% lighter DOM&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;First-Load JS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;380 KB – 750 KB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&amp;lt; 14 KB (Vanilla JS)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~96% less script&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Layout Shift (CLS)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.18 – 0.42&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.00 – 0.01&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Zero visual jumping&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Test your own stack live:&lt;/strong&gt; Run a real-time DOM bloat and load-time diagnostic using our interactive &lt;strong&gt;&lt;a href="https://marketingwithansh.com/wordpress-speed-without-plugins/" rel="noopener noreferrer"&gt;WordPress Speed Without Plugins Calculator&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  3 Pure-Code Patterns That Eliminate Speed Plugins
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Scoped CSS Isolation (Zero Theme Conflicts)
&lt;/h3&gt;

&lt;p&gt;Instead of loading global CSS frameworks, every component is isolated under &lt;code&gt;.ag-*&lt;/code&gt; namespaces with &lt;code&gt;contain: layout style paint&lt;/code&gt; so the browser skips unnecessary repaints:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:root {
  --ag-bg: #F5F5F7;
  --ag-ink: #1D1D1F;
  --ag-accent: #007AFF;
}

.ag-card-surface {
  background: #FFFFFF;
  color: var(--ag-ink);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 16px;
  contain: layout style paint;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  2. Off-Thread GPU Image Pre-Decoding (Replaces Slider Plugins)
&lt;/h3&gt;

&lt;p&gt;Heavy carousel plugins (&lt;code&gt;Swiper&lt;/code&gt;, &lt;code&gt;Revolution Slider&lt;/code&gt;) block the main thread. Using &lt;code&gt;img.decode()&lt;/code&gt; offloads decompression to the GPU before swapping frames:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async function preloadAndSwapWebP(imgEl, rawUrl, width = 900) {
  const endpoint = 'https://wsrv.nl/?url=';
  const optimized = endpoint + encodeURIComponent(rawUrl) + '&amp;amp;w=' + width + '&amp;amp;q=82&amp;amp;output=webp';
  const loader = new Image();
  loader.decoding = 'async';
  loader.src = optimized;
  try {
    await loader.decode();
    requestAnimationFrame(() =&amp;gt; {
      imgEl.src = optimized;
    });
  } catch (err) {
    imgEl.src = rawUrl;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  3. Cache-Safe Scroll Reveal (Prevents Blank Screens on Deferral)
&lt;/h3&gt;

&lt;p&gt;Aggressive JS deferral in edge caches can trap &lt;code&gt;.ag-reveal&lt;/code&gt; sections at &lt;code&gt;opacity: 0&lt;/code&gt;. Always pair &lt;code&gt;IntersectionObserver&lt;/code&gt; with a safe fallback:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {
  const nodes = document.querySelectorAll('.ag-reveal');
  if (!('IntersectionObserver' in window)) {
    nodes.forEach(el =&amp;gt; el.classList.add('is-visible'));
    return;
  }
  const observer = new IntersectionObserver((entries, obs) =&amp;gt; {
    entries.forEach(entry =&amp;gt; {
      if (entry.isIntersecting) {
        entry.target.classList.add('is-visible');
        obs.unobserve(entry.target);
      }
    });
  }, { threshold: 0.12 });

  nodes.forEach(el =&amp;gt; observer.observe(el));
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;&lt;b&gt;Click to Expand: The 5-Point Zero-Plugin WordPress Speed Checklist&lt;/b&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Strip Hosting Bloatware:&lt;/strong&gt; Remove pre-installed onboarding wizards and background dashboard trackers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforce Explicit Dimensions:&lt;/strong&gt; Declare &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;aspect-ratio&lt;/code&gt; on every image/SVG to lock &lt;code&gt;CLS&lt;/code&gt; at &lt;code&gt;0.00&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subset Typography:&lt;/strong&gt; Load only required weights (&lt;code&gt;400, 600, 700&lt;/code&gt;) with &lt;code&gt;font-display: swap&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace Sliders with Vanilla JS:&lt;/strong&gt; Use native CSS Grid and &lt;code&gt;img.decode()&lt;/code&gt; instead of 200KB jQuery carousels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single Edge Cache Layer:&lt;/strong&gt; Run one server-native cache layer (LiteSpeed Cache with Guest Mode + WebP) instead of stacking multiple speed plugins.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Live Architecture &amp;amp; B2B Agency Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Speed Diagnostic:&lt;/strong&gt; &lt;a href="https://marketingwithansh.com/wordpress-speed-without-plugins/" rel="noopener noreferrer"&gt;WordPress Speed Without Plugins Calculator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B2B Agency Delivery (4–5 Day Sprints):&lt;/strong&gt; &lt;a href="https://marketingwithansh.com/white-label-wordpress-partner/" rel="noopener noreferrer"&gt;White-Label WordPress Partner&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Front-End Execution Breakdown:&lt;/strong&gt; &lt;a href="https://marketingwithansh.com/front-end-designing-agency/" rel="noopener noreferrer"&gt;Front-End Designing Agency Guide&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Repo:&lt;/strong&gt; &lt;a href="https://github.com/marketingwithansh/wordpress-speed-without-plugins" rel="noopener noreferrer"&gt;GitHub — wordpress-speed-without-plugins&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio &amp;amp; Portfolio:&lt;/strong&gt; &lt;a href="https://marketingwithansh.com/" rel="noopener noreferrer"&gt;MarketingWithAnsh — Ansh Garg&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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