<?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: Ramanjaneya K</title>
    <description>The latest articles on DEV Community by Ramanjaneya K (@ramanjaneyakarnati).</description>
    <link>https://dev.to/ramanjaneyakarnati</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%2F517424%2F7e451607-460c-49b8-b5e2-4528941c999b.jpeg</url>
      <title>DEV Community: Ramanjaneya K</title>
      <link>https://dev.to/ramanjaneyakarnati</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ramanjaneyakarnati"/>
    <language>en</language>
    <item>
      <title>How I built a High-Performance Jamstack website with nuxt js</title>
      <dc:creator>Ramanjaneya K</dc:creator>
      <pubDate>Thu, 19 Nov 2020 17:17:30 +0000</pubDate>
      <link>https://dev.to/ramanjaneyakarnati/how-i-built-a-high-performance-jamstack-website-12ho</link>
      <guid>https://dev.to/ramanjaneyakarnati/how-i-built-a-high-performance-jamstack-website-12ho</guid>
      <description>&lt;h3&gt;
  
  
  About me
&lt;/h3&gt;

&lt;p&gt;I’m a Fullstack developer with more than 7 years of well-rounded experience in managing all facets of site development from scratch development to cloud deployments using Google Cloud Platform&lt;/p&gt;

&lt;h3&gt;
  
  
  The problem I wanted to solve
&lt;/h3&gt;

&lt;p&gt;After running a detailed analysis of the existing website, which was developed in Gatsby. Our team has identified the following areas to improve the website performance&lt;/p&gt;

&lt;h3&gt;
  
  
  Areas:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Excessive loading of the javascript&lt;/li&gt;
&lt;li&gt;Efficient utilization of network utilization&lt;/li&gt;
&lt;li&gt;Image optimization&lt;/li&gt;
&lt;li&gt;Reducing webpack bundle sizes and making lazy load chunks&lt;/li&gt;
&lt;li&gt;Avoid using larger CSS files&lt;/li&gt;
&lt;li&gt;Not Using a Content Delivery Network (CDN)&lt;/li&gt;
&lt;li&gt;Effective usage of caching the pages&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Information About the website I'm going to migrate?
&lt;/h3&gt;

&lt;p&gt;Family Owned &amp;amp; Operated Company Serving Our Community:&lt;/p&gt;

&lt;p&gt;When you need accomplished and trained heating and AC technician, or plumber in Las Vegas, you can count on our team here at &lt;a href="http://hawthornephc.com"&gt;Hawthornephc&lt;/a&gt; Plumbing, Heating, &amp;amp; Cooling. For more than 15 years, we have proudly helped our neighbors throughout the Las Vegas Valley stay comfortable in their homes and businesses.&lt;/p&gt;

&lt;p&gt;No matter which of our services you need, you will be helped by an experienced, trained, and polite technician. We understand there are many companies with technicians who might be greedy, rude, sloppy, and might not even show up on time. Our team is here to help you with a high level of service.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tech stack
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Nuxt JS&lt;/li&gt;
&lt;li&gt;Bootstrap&lt;/li&gt;
&lt;li&gt;Ghost CMS&lt;/li&gt;
&lt;li&gt;Google Analytics&lt;/li&gt;
&lt;li&gt;Sentry (Error Tracking)&lt;/li&gt;
&lt;li&gt;Gohighlevel (Marketing Automation Tool)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The process of building How I built a High-Performance Jamstack website
&lt;/h3&gt;

&lt;p&gt;We started refreshing the website migration with the existing design and started focusing on the areas to improve:&lt;/p&gt;

&lt;h3&gt;
  
  
  Excessive loading of the javascript:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Changed the loading of the scripts from synchronous to asynchronous. This will prevent from renders blocking javascript and will allow the page to load separately.&lt;/li&gt;
&lt;li&gt;Defer the javascript till the dom content got painted and visible to users&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Efficient utilization of network utilization:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Lazy Loading of images will improve the network utilization and improve the performance&lt;/li&gt;
&lt;li&gt;Lazy Loading of webpack bundle chunks&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Image optimizations:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;As the images are larger in size, will affect the loading of the web page. We used the image optimization plugin to reduce the image size without losing the quality of the image.&lt;/li&gt;
&lt;li&gt;We added height and width for the image this will allow loading the specific dimension based image from the network&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Reducing webpack bundle sizes and making lazy load chunks:
&lt;/h3&gt;

&lt;p&gt;Reduced the size of webpack generated bundles and loading them in a lazyload way is a great performance improvement step we achieved as part of the &lt;a href="http://hawthornephc.com"&gt;Hawthornephc&lt;/a&gt; migration project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Avoid using larger CSS files:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Prevented using of large CSS files and converted to component inline CSS in nuxt js&lt;/li&gt;
&lt;li&gt;Removed all the inline CSS from the files&lt;/li&gt;
&lt;li&gt;Reducing the expensive heavy dom selectors&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Not Using a Content Delivery Network (CDN):
&lt;/h3&gt;

&lt;p&gt;Cached the static assets with CDN. It improves the loading of the webpage without any delay.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenges I faced
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Preventing duplicate metadata for static generated pages&lt;/li&gt;
&lt;li&gt;Efficient way of generating the app in production with configuration&lt;/li&gt;
&lt;li&gt;Minimizing the website initial load&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>nuxt</category>
      <category>ghost</category>
      <category>jamstack</category>
      <category>staticwebsite</category>
    </item>
  </channel>
</rss>
