PWA with WordPress Without Coding — Part 6/6

End Result:

screenshot showing the PWA at work

So as promised, we were able to make a PWA, from scratch, without a single line of code!

Unexpected Issues

I encountered an unexpected issue. Add to home screen prompt is shown in Mozilla Firefox, but not on Google Chrome. I filed this issue in their GitHub repository. Turns out this is because I am running WordPress from within a separate directory.

I will continue tracking this issue (Issue #19), and update this post once the developers of the plugin have resolved this. This issue affects people who have given WordPress its own folder while installation.

Benchmarks, Expected Problems:

It is very important that we log out before running our tests. I will use lighthouse, and webpagetest.org to measure what we have. We will only measure performance, PWA, and best practices.

And here are the results, something that shouts: “This approach still has a long way to go!”

https://www.webpagetest.org/result/180410_YJ_c8377221e539475c6b6151892eb2a655/

the main culprit: the cost of loading

Lighthouse PWA Score 82 run via webpagetest.org, and 73 when run locally:

problems that upset you

The point of ambiguity is speed and as we can see, it is the biggest catch for this method of building websites.

Adding in a CDN and a proper catching plugin will make the speed and load times bearable, but I want to go a step further. A simple performance analysis shows way too many missed opportunities for my taste.

I could build a stunning PWA, without touching a single line of code. It is expected that a few compromises had to be made in the performance part.

<SPECIAL> A Future Expectation
Please follow this issue to learn more: https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/20
Full OneSignal support in the next update of the SuperPWA plugin! What this means is, the day isn’t far that when we press publish, our users get a notification!

Future Plans

Thanks to the Google’s Udacity Scholarship Challenge and my enrollment in Mobile Web Specialist Track, I am actually learning the skills I need to code a fast web app from scratch.

As time passes I aim to:

  • Explore the features around manipulating post templates, category templates, error templates etc between the livecomposer and elementor plugins
  • Make my own theme, starting from the _s project, without leaving any bloat
a short intro on _s by mor10
  • Custom coded post and page templates
  • Self-written service worker, written with the help of workbox
  • A high lighthouse performance score

This was end of the five-part series. Please watch out for my PWA + WordPress with code series after I complete the MWS Nanodegree from Udacity.

Series Index:

--

--

Raveesh Agarwal
Beginner's Guide to Mobile Web Development

Entrepreneur, software craftsman and technology enthusiast, I continue to solve problems and grow with my projects, partnerships and endeavors.