The fastest PWA blog experience I’ve always dreamed of
Tags: pwa, wordpress, api
Published: 2018-06-23 14:01:54

---
title: The fastest PWA blog experience I’ve always dreamed of
published: true
description: PWA is fast. Using it for a blog even puts the blog on steroids. Here's how I achieve under 2 second load for all my articles on my blog using a PWA consuming my WordPress API
tags: pwa, wordpress, api
---

Progressive Web Apps (PWA) is the ['distin'](https://www.urbandictionary.com/define.php?term=Distin) now. I had fun consuming my WordPress blog via API with a new UI, built as a PWA using Angular

> There's a bonus feature on [Khophi.Blog](https://www.khophi.blog). Scroll down to try it.

Earlier this year, I wanted a playground to have fun. My blog powered by WordPress has a boring UI (kinda), although it gets the job done.

Aside the UI, the load time also was an issue for me. I stopped showing ads on the blog, with hopes it'll improve the load speeds.

Well, that move did help, except not much.

I could throw more firepower to my servers, and or do even more caching and other optimizations to get things going faster.

Or, I could consume the WordPress via it's API. I went with this option, and [Khophi.Blog](https://www.khophi.blog) was born.

## PWAs - I might be obsessed. Help me!

All I can think of for close to a year now is how best I can leverage the ever improving web technologies to build better, mobile-ready, and richer applications.

So a PWA is basically, as defined by [Ionic](https://ionicframework.com/pwa),

> "are a new way to offer incredible mobile app experiences that are highly optimized, reliable, and accessible completely on the web."

It's a website, a web application, but mobile users can at the same time experience the application as a mobile app on their phones.

Angular is my go-to for building my PWAs.

## So Khophi.Blog

I built Khophi.Blog to be as minimalistic as possible, with the utmost focus on speed. Thus, everything about the site is fast, lean, streamlined, and depending on who you ask, boring! And no ads.

To achieve the above, [Angular Framework](https://angular.io/) was the choice of front-end framework for the UI plumbing. The grooming and fashion part is handled by [UI Kit](https://getuikit.com/).

The backend is [blog.khophi.co](https://blog.khophi.co/) (a WordPress CMS), which exposes API endpoints of which the frontend consumes.

As you peruse the code, you should come across features making use of functionalities like

 - It's PWA, installable on mobile and desktop
 - Angular Animations
 - The use of @Input and @Ouput for component interactions
 - Handling offline mode
 - Code reusability (via Components)
 - HTTP Service
 - Infinite scrolling
 - Web Share API
 - Caching content for offline viewing

## Development

I'm constantly looking for ways to even make the application faster, and thinking of what I might need to remove to achieve that.

> "It seems that perfection is attained not when there is nothing more to add, but when there is nothing more to remove" - Antoine de Saint Exupéry

The project is available on [Bitbucket](https://bitbucket.org/seanmavley/blognext), and PR and or [Issues](https://bitbucket.org/seanmavley/blognext/issues?status=new&status=open) are welcome.

## Bonus

You can now try your WordPress blog via Khophi.Blog.

Steps are

 - Visit khophi.blog
 - Tap/Click on the Hamburger menu
 - Select "Try"
 - Enter your WordPress site URL in there. Don't begin with https:// and don't end with anything after the domain. E.g theafricandream.net
 - The blog will change to loading content from your WordPress blog. Depending on how complex you've rigged your WordPress site, some things might break. Happy to hear all the errors, if any.

Simply raise an issue and I'll take a look. If PR too, the better.

See the GIF below to learn how.

![GIF of how trying Khophi.blog works](https://blog.khophi.co/wp-content/uploads/2018/06/Peek-2018-06-14-14-44.gif)

Enter your WordPress URL and start exploring your blog via KhoPhi Blog. I hope you enjoy the speed and ease PWAs bring.

Someday, I might fully replace [blog.khophi.co](blog.khophi.co) with [khophi.blog](https://www.khophi.blog) for good!

> This article was shared from [Blog.Khophi.co](https://blog.khophi.co/khophi-blog-the-fastest-blog-experience-ive-always-dreamed-of/)