<?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: DAY happy</title>
    <description>The latest articles on DEV Community by DAY happy (@day_happy_5185be9f77cd515).</description>
    <link>https://dev.to/day_happy_5185be9f77cd515</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3882984%2Fc259feb1-22f5-44c4-929e-8a06dcfc6248.png</url>
      <title>DEV Community: DAY happy</title>
      <link>https://dev.to/day_happy_5185be9f77cd515</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/day_happy_5185be9f77cd515"/>
    <language>en</language>
    <item>
      <title>How I Got Lighthouse 99/95/100/100 on a Custom Shopify Theme</title>
      <dc:creator>DAY happy</dc:creator>
      <pubDate>Sun, 26 Apr 2026 11:57:09 +0000</pubDate>
      <link>https://dev.to/day_happy_5185be9f77cd515/how-i-got-lighthouse-9995100100-on-a-custom-shopify-theme-4k85</link>
      <guid>https://dev.to/day_happy_5185be9f77cd515/how-i-got-lighthouse-9995100100-on-a-custom-shopify-theme-4k85</guid>
      <description>&lt;p&gt;Most Shopify stores score somewhere between 40-70 on Lighthouse. I got mine to 99/95/100/100 (Performance / Accessibility / Best Practices / SEO) without any paid apps or external optimization tools. Here's exactly what I did.&lt;/p&gt;

&lt;h2&gt;
  
  
  The starting point
&lt;/h2&gt;

&lt;p&gt;I'm running &lt;a href="https://yourhealthier.com" rel="noopener noreferrer"&gt;YourHealthier&lt;/a&gt;, a DTC supplement brand on Shopify. I built a custom theme from scratch instead of using a pre-built one, which gave me full control over every line of Liquid, HTML, CSS, and JS.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually moved the scores
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Performance (99)
&lt;/h3&gt;

&lt;p&gt;The biggest gains came from fixing CLS (Cumulative Layout Shift). Most Shopify themes load product images without explicit width/height attributes, which causes layout jumps. I added explicit dimensions to every image element and used &lt;code&gt;aspect-ratio&lt;/code&gt; in CSS as a fallback.&lt;/p&gt;

&lt;p&gt;I also deferred all non-critical JavaScript. Shopify injects a lot of scripts by default — I moved everything I could to &lt;code&gt;defer&lt;/code&gt; or loaded it after user interaction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Accessibility (95)
&lt;/h3&gt;

&lt;p&gt;This one is mostly about semantic HTML that people skip:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every image got descriptive, branded alt text — not just "product image" but something like "YourHealthier Magnesium Glycinate 120 capsules front label"&lt;/li&gt;
&lt;li&gt;Proper heading hierarchy (H1 &amp;gt; H2 &amp;gt; H3, no skipping)&lt;/li&gt;
&lt;li&gt;Focus states on all interactive elements&lt;/li&gt;
&lt;li&gt;Sufficient color contrast ratios on all text&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best Practices (100)
&lt;/h3&gt;

&lt;p&gt;No mixed content, no deprecated APIs, HTTPS everywhere. Shopify handles most of this, but third-party app scripts can break it. I removed every app I wasn't actively using.&lt;/p&gt;

&lt;h3&gt;
  
  
  SEO (100)
&lt;/h3&gt;

&lt;p&gt;This is where I spent the most time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Enhanced Product Schema&lt;/strong&gt; with JSON-LD including price, availability, review data, and brand&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Semantic breadcrumb navigation&lt;/strong&gt; with BreadcrumbList schema&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Canonical URLs&lt;/strong&gt; on every page to prevent duplicate content&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meta descriptions&lt;/strong&gt; dynamically generated from product data instead of generic defaults&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proper robots.txt and sitemap&lt;/strong&gt; submitted to Google Search Console&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The CSS crawlability fix most people miss
&lt;/h2&gt;

&lt;p&gt;I had tab content on product pages (Description, Ingredients, Reviews) hidden with &lt;code&gt;display: none&lt;/code&gt; in CSS. Google doesn't reliably index content behind &lt;code&gt;display: none&lt;/code&gt;. I switched to a CSS approach that keeps content in the DOM and accessible to crawlers while still functioning as tabs visually.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting from scratch
&lt;/h2&gt;

&lt;p&gt;Don't start with a heavy pre-built theme and try to optimize it. Start minimal and add only what you need. Every app you install adds JavaScript. Every feature you don't use is dead weight.&lt;/p&gt;

&lt;p&gt;Audit all 53 theme files if you have to. I did. It took time but the result is a store that loads fast, ranks well, and doesn't depend on any paid speed optimization apps.&lt;/p&gt;




&lt;p&gt;If you're working on Shopify performance and have questions, happy to share specifics. The store is live at &lt;a href="https://yourhealthier.com" rel="noopener noreferrer"&gt;yourhealthier.com&lt;/a&gt; if you want to run your own Lighthouse audit on it.&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>seo</category>
      <category>webperf</category>
      <category>ecommerce</category>
    </item>
  </channel>
</rss>
