<?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: Peakxel Studio</title>
    <description>The latest articles on DEV Community by Peakxel Studio (@peakxel-studio).</description>
    <link>https://dev.to/peakxel-studio</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%2F3942688%2F068504ba-d7da-40fc-8dce-03871afdae3b.jpg</url>
      <title>DEV Community: Peakxel Studio</title>
      <link>https://dev.to/peakxel-studio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/peakxel-studio"/>
    <language>en</language>
    <item>
      <title>How We Optimized a Next.js Website to Score 100 on PageSpeed Insights</title>
      <dc:creator>Peakxel Studio</dc:creator>
      <pubDate>Wed, 20 May 2026 17:48:48 +0000</pubDate>
      <link>https://dev.to/peakxel-studio/how-we-optimized-a-nextjs-website-to-score-100-on-pagespeed-insights-11e</link>
      <guid>https://dev.to/peakxel-studio/how-we-optimized-a-nextjs-website-to-score-100-on-pagespeed-insights-11e</guid>
      <description>&lt;p&gt;We recently optimized a client’s Next.js website that had terrible mobile performance despite looking visually great.&lt;/p&gt;

&lt;p&gt;The main issues were:&lt;/p&gt;

&lt;p&gt;oversized images&lt;br&gt;
heavy animations&lt;br&gt;
unnecessary JavaScript&lt;br&gt;
blocking third-party scripts&lt;/p&gt;

&lt;p&gt;Here are the 3 fixes that made the biggest difference.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using next/image&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Some images were over 2MB.&lt;/p&gt;

&lt;p&gt;Switching to optimized WebP assets with Next.js image optimization improved loading speed immediately.&lt;/p&gt;

&lt;p&gt;import Image from "next/image";&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lazy Loading Components&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Several below-the-fold sections loaded instantly even when users never reached them.&lt;/p&gt;

&lt;p&gt;Dynamic imports reduced the initial bundle size significantly.&lt;/p&gt;

&lt;p&gt;const Testimonials = dynamic(() =&amp;gt; import("./Testimonials"));&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Delaying Third-Party Scripts&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Analytics and chat widgets were hurting performance badly.&lt;/p&gt;

&lt;p&gt;Using lazy loading for non-essential scripts reduced Total Blocking Time almost completely.&lt;/p&gt;

&lt;p&gt;Final Results&lt;br&gt;
Metric  Before  After&lt;br&gt;
Mobile Score    61  98&lt;br&gt;
Desktop Score   82  100&lt;br&gt;
LCP 4.8s    1.3s&lt;/p&gt;

&lt;p&gt;Most Next.js performance issues are not caused by the framework itself — they usually come from bad asset optimization and unnecessary JavaScript.&lt;/p&gt;

&lt;p&gt;We now use this workflow in our production builds at &lt;a href="https://peakxelstudio.com/" rel="noopener noreferrer"&gt;https://peakxelstudio.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
