DEV Community

Cover image for Why You Should Build a JAMstack Website?
tomgrabski for Pagepro

Posted on • Edited on • Originally published at pagepro.co

Why You Should Build a JAMstack Website?

Isn’t it frustrating to see clients leaving your website with no purchase, nor contact made, and never coming back?

What about the ones you missed because of low Google rank? How many of them went to your competition? Or maybe you seem to have nice traffic, yet still no one is buying?

Reasons may be different, but most of the time, it’s all coming down to user experience, SEO performance and the feeling of trust you present on your page.

Taking care of all seems to be a challenge. Yet it’s much easier when you actually have full control over the experience you deliver (instead of using plugins you cannot edit) and modern technology that you can trust (to do its job with uncle Google and his engine).

That’s exactly what JAMStack development offers – super-fast, user-friendly, totally customized, and extremely SEO efficient websites.

Ready to give your business another breathe? 


What is JAMstack?

In the words of Mathias Billmann, Netlify CEO and Co-founder, JAMstack stands for "a modern web development architecture based on client-side JavaScript, reusable APIs and pre-built Markup".

This combination gives developers a chance to get benefits of a static website and the ability to connect the website to a dynamic CMS.

Circles with JAM word inside
https://strapi.io/blog/jamstack

JavaScript

JavaScript handles dynamic functionalities. The good thing is that you can use whatever framework or library you want.

APIs

JavaScript accesses reusable APIs – abstracted from server-side operations – through HTTPS. You can use either third-party services or develop a custom function.

Markup

Websites are static since they are served as static HTML files. These can be generated with a Static Site Generator like Gatsby or Next JS.


Differences between static and dynamic websites

To better understand how JAMstack works,  let’s have a look on the differences between static websites and dynamic websites.

What is a dynamic site?

Dynamic websites make it possible for users to make interactions with the website content, which is being generated in real-time. What it means is that the content can change depending on users' location, device, time zone, or even network.

A dynamic website may use either client-side rendering, server-side rendering, or both. Client-side rendering is when the browser executes code, and in the case of server-side rendering, the server is responsible for that.

There are many great examples of dynamic websites such as websites built on WordPress or Drupal which both are Content Management Systems (CMS).

What is a static site?

On the contrary, the content on a static website doesn't change regardless of the user's actions, the browser's language, or other preferences. Every page has a dedicated HTML file containing this page's content. Since it's necessary to have some HTML knowledge to edit these source files, they are not meant to update them on a regular basis.

For example, to create a simple business website, you could use a Static Site Generator (SSG) like Gatsby or Next.js.

Dynamic or static: what Google would choose?

Since the goal is to build a website, it's important to take Google into consideration when deciding between dynamic and static websites. The more Google will like our site, the higher it will rank in search results which may lead to getting new customers easier.

Static sites load faster.

Page load speed not only affects user experience but it's also one of the most important SEO ranking factors. In other words, the faster the website, the higher it ranks.

Static sites are pre-rendered – which means that the content is generated in advance, not in real-time. Because of that, they are faster than dynamic ones.

Static sites are easier to index.

Static websites are generated from HTML and CSS files which makes them easy to ready and index for Google crawlers. A simple sitemap also helps with indexation and not only Google recommends it, but also all search engines.

Static sites are easier to optimise.

Choosing a static website equals total control over SEO. You can modify and optimise any page on your website however you want to. On the contrary, you may need a plugin or two to help you with SEO efforts on a dynamic website.

Static sites are cheaper to host and maintain.

As static websites are built of simple HTML files, they don't need as much space on the hosting server as dynamic sites. Heck, hosting of a static website can even be free.

Also, such a website won’t use much of the monthly transfer limit (if there is any).


Best technologies to build a JAMstack website

The choice of JAMstack website technologies is huge and quite difficult.

First, you need to choose tools and technologies for:

  • Front-end layer
  • Headless CMS
  • Hosting and deployment

At Pagepro, we have some preferences regarding the technologies we use in projects for clients, and you can find them below. We believe that they will be a great choice for you, too.

Front-end technologies

Headless CMS

Hosting and deployment


Why build a JAMstack website?

Speed and Performance

The page load speed of the website is not only an important SEO ranking factor but it also affects user experience and conversion rate. JAMstack website pre-generates specific pages at a build time instead of request time.

Because of that, all the website pages are stored on a Content Delivery Network that's closest to the user visiting a website. It ensures high performance without a need for investing in expensive solutions.

SEO efficiency

JAMstack website means getting full control over the website’s content and structure, and consequently, over the SEO of such a website. You can easily add custom metadata like page titles, meta descriptions and alt text. It helps search engines to read and index the content on your website.

Website built on JAMstack consists of HTML files which also helps with indexation and dealing with typical problems with improving search engine optimisation.

Be aware that Google rewards high-performant and fast websites with higher rankings in search results with ultimately leads to more visitors and more sales.

User Experience

Would you come back to the place where you have had a terrible experience? It’s doubtful. The same thing applies to websites — the first impression makes all the difference. If your user experience is awful, the probability that you will revisit such a website is low.

User experience is also important from the perspective of Google. While it’s not clear how Google measures user’s satisfaction from visiting websites, they gave some suggestions about what’s essential from the UX perspective:

  • Easy to read and useful content
  • Responsive design
  • Site architecture that’s clear and well-organised 

Greater security

Traditional server-side and CMS applications are vulnerable to attacks because of a number of different APIs and services they use. Although it's necessary so administrators can manage data and content, such applications need to be looked after on a daily basis.

Such a risk does not apply to static websites, because they consist of read-only files. There is no active connection between a static site and any database or server-side software. Consequently, there are no vulnerabilities for hackers to exploit.

Resistance to high traffic

Popular websites try to cope with increasing traffic by caching pages which doesn't happen by default. On the contrary, JAMstack website makes it done without any involvement. These sites can be served entirely from CDN (Content Delivery Network) so there is no need for additional logic or workflow.

Using CDN means also simpler deployments, built-in redundancy and awesome load capacity.

Maintainability

If hosting becomes less demanding, the same applies to maintenance. A static website doesn't require an administrator 24/7 to keep running without any troubles since it's being served directly from a host or CDN.

JAMstack website is stable because the most important work was done during the development process. The necessity of server patching, updating and maintaining practically vanishes.

Portability

If you have a JAMstack website, you can put it on a favourite hosting because there are no limitations. And even if you won't like a hosting provider of your choice, you can change it quickly and effortlessly.

Scalability

If you have a ready website, you can scale it easily by copying and pasting pre-made blocks and components. Therefore, if you have some coding knowledge, you can build next pages without worrying about the developer's availability. 

Developer Experience

Availability of highly-skilled developers to build JAMstack websites is huge because of the number of technologies that they can choose. Instead of learning new frameworks or tools, they can use what they already know.


Examples of a JAMstack website

Otakuchan (check our case study)

Example of JAMstack website: Otakuchan

LBI Financial (check our case study)

Example of JAMstack website: LBI Financial

AutoloadIT (check our case study)

Example of JAMstack website: AutoloadIT

Top comments (0)