Home » Insights » Why Use WordPress as a Decoupled CMS?

1st December 2017 in Expert Opinion

Why Use WordPress as a Decoupled CMS?

Illustration of a web page with a gray browser header, URL "https://mysite.web", and simplified webpage content. Features include text lines, a purple star icon, and an image placeholder of mountains and a sun on an orange background.

All we’ve ever done with WordPress in the past is create the pages, add all the client’s content:- images, text and everything else – and output it using a WordPress theme.

And it’s always worked fine.

So why are we now looking at ways of doing things differently?

There are several core benefits to decoupled websites that impact the long-term cost-benefit of your website, allowing you to plan for the future and improve the user experience, which in turn generates more goodwill.

But before we get into that, let’s talk semantics.

What Is Decoupled?

Decoupled (v): enables computing components or layers to execute independently while still interfacing with each other (from Technopedia –https://www.techopedia.com/definition/16907/decoupled-architecture)

As the Technopedia definition hints, decoupling means there’s a separation between where you edit your website and where it’s displayed.

It means you edit your content in WordPress, but when visitors go to your website, they won’t be using WordPress; they’ll be using a normal website.

Decoupled programming was introduced to the web primarily because it’s simpler. Instead of one large block of code, you split your concerns into two distinct components that can be easier to manage.

So your web developers will thank you for making their job easier. It’ll also be easier on your wallet because it’ll likely reduce the time that it takes to work on complicated and convoluted code.

However, there are also other benefits for you and your website visitors, customers, and brand followers.

Let’s see what they are.

Benefits for You, and Your Customers

1. Decoupled is Unhackable

WordPress is a massive target for hackers, simply because it powers a large percentage of websites. Third-party plugins, as well as WordPress itself, typically require regular updates to keep your site secure for you and your customers.

A headless site consists of two separate parts: your WordPress site, which serves as your content editor, and the visual part. This visual part is the one Joe Public sees and is separate from your site. It can’t be affected by any of these concerns. You can even protect your WordPress site from being visible or accessible to anyone except you, while still allowing people to view your website.

2. Decoupled is fast

Right now, every time someone comes to your website, WordPress spins into action. This takes time that can sometimes be measured in seconds. For a few visitors who are on a fast broadband connection located in the same country as your WordPress site is hosted, this isn’t a problem.

But what if you want to gain business from people on slower networks, for instance, on their mobiles? What if your customers are sometimes abroad, either on holiday or they’re based outside of the UK? Likely, you don’t realise this, but you are very likely losing business because of this.

A Decoupled website serves content extremely quickly because it does not visit a WordPress site. That saves a lot of time. The servers we use to host Decoupled sites are built and managed by Amazon Web Services, and are also extremely fast, minimising the delivery speed at every opportunity. This gives you the freedom to deliver far more immersive user experiences without losing out on potential customers.

words and pictures going into WordPress, being built into a Gatsby.js site and into a browser

3. Decoupled is resilient

Ever had your WordPress site go down, displaying a cryptic error, or a blank white screen? This could be due to WordPress but could also be an issue with your server. Servers get full and crash, or get old and crash, run our of memory and crash, or just crash without telling you why.

In contrast, a headless site is hosted everywhere, often propagated across multiple servers. This means it’s more resilient. You never have to worry about the state of your server ever again. Wherever people have internet access, your site will be available to them.

4. Decoupling is future-proof

Want to build a native iOS or Android app? Want your content to work on a Smart TV? A voice-activated home device? New platforms are emerging at a rapid pace. When will these technologies be relevant to your market? It could be tomorrow.

With a Decoupled foundation, you have a single source of content that can be used anywhere – from a mobile app to a connected fridge. The investment required for you to grow your business into new markets is significantly lower with this approach.

The home page of web design & development website Smashing Magazine
Smashing Magazine recently launched its headless website, a combination of APIs and secure hosting that enables their online portal to host a blog, a shop, manage events, host a job board, and have a dedicated members area—all without relying on a back end.

Considerations

There’s no denying it, we need to be clear about what we’re suggesting when it comes to Decoupled websites. Here are a few points you may want to keep in mind:

1. Decoupled means two websites

All these benefits above stem from this core idea: a separate place to add, edit, and store your content, distinct from where it displays on your website. You’ll still need a WordPress site somewhere.

The upside of this is that you can switch out either your website or WordPress at a moment’s notice, entirely independently. You can rework your brand identity without touching your content. No more copying posts, rewriting pages in your new CMS, no clearing out old shortcodes and markup that you don’t need any more. You can also replace WordPress with another platform without affecting your customer-facing site.

2. Decoupled means more connections

A headless site depends on the connectivity of the web. That’s a fragile thing. You’ll likely have several connected services (APIs) performing different tasks on your site, and these could fail temporarily.

For example, if you have a Twitter widget, and Twitter goes down, your widget won’t display correctly.

However, this isn’t just a problem with Decoupled sites. It can happen with your existing site, for example, if you update a plugin that conflicts with another plugin or your theme.

However, that affects your entire site, not just that plugin. At least with an API, it won’t be your whole site displaying a “White Screen of Death”- the rest of your site will remain unaffected.

The benefit of APIs is that because hundreds of people use them and are actively managed on a day-to-day basis, occurrences will likely be rare and fixed quickly (and not by you or your developer – so probably costing you less too!).

What Can I Use Decoupled for?

Almost anything that can be made with WordPress can be made with a Decoupled website. And you have more options. For example, does your online shop use WooCommerce? No problem, but you could also use an API-based service like Snipcart.

One of the most prominent website magazines on the web recently moved from WordPress to Decoupled. Although they moved away from WordPress altogether, this site is an excellent example of what can be achieved, as it features an online shop, a members’ area, and many other complex functionalities that might not have been possible without a very complicated application.

Decouple Your Site

Is your site loading slowly? Does your WordPress backend look more like an overdecorated Christmas tree than a safe environment for your content authors? Does your site break regularly, leaving your customers out in the cold?

A decoupled site can reduce this pain and more:- it’ll provide you with a stable website as well as a safe editing environment, benefiting your organisation across the board – from marketing to customer satisfaction and on to your accounts department.

Additional Links

https://pantheon.io/decoupled-cms – Decoupled CMS: Why “Going Decoupled” Is Becoming So Popular
https://www.netlify.com/products – Features of Netlify (our hosting platform)
https://www.netlify.com/blog/2017/03/16/smashing-magazine-just-got-10x-faster/ – Smashing Magazine Just Got 10x Faster
https://snipcart.com/blog/jamstack-clients-static-site-cms – JAMstack for Clients: Benefits, Static Site CMS, & Limitations

Send a message to Indigo Tree today or call us on 01442 877 473 to see some examples of decoupled sites and hear more about our clever approach to delivering beautiful code.