Just a recap of the major changes of lesterchan.net after v4.3:
- lesterchan.net now on HTTPS
- lesterchan.net on nginx/php-fpm & MariaDB
- lesterchan.net on HHVM
- lesterchan.net Search powered by Algolia Search
Now for the changes in v4.4.
The changes in WordPress 4.4 are huge. WordPress 4.4 is no doubt the biggest release I have seen in recent years.
I have been waiting for WP-API to be in the WordPress core for years and with WordPress 4.4, the first portion (infrastructure) of WP-API was already merged in. The second and last portion (endpoints) of WP-API will be in WordPress 4.5.
WordPress 4.4 also saw the introduction of term meta which allows you to store metadata for a term without the need of an additional plugin.
I have switched to nginx mainline’s branch and hence updated nginx to 1.9.7 which includes support for HTTP/2 (since nginx 1.9.5).
I am using the Chrome’s plugin called HTTP/2 and SPDY indicator which indicates whether a site is on HTTP/2 or SPDY. The extension will show a blue lightning icon in the address bar if the page is HTTP/2 enabled, green if the page is SPDY enabled, and grey if neither is available.
This is a TIL (Today I Learned) for me. Despite HTTP/2 standard itself does not require the usage of encryption, most client implementations (Firefox, Chrome, Safari, Opera, IE, Edge) have stated that they will only support HTTP/2 over TLS, which makes encryption mandatory. That means you will need an SSL cert for your domain to use HTTP/2.
Font Awesome 4.5.0
Font Awesome 4.5.0 was released last week with the new Google’s logo as well as the addition of several popular icons such as Bluetooth, USB, Product Hunt, Microsoft Edge and hashtag.
Lazy Loading of Images
I have started implementing lazy loading of images using bLazy.JS.
I have removed the usage of my WordPress Plugin, WP-UserOnline, on this site. I am now relying on a custom API endpoint with Google Analytics Real-time to keep track the number of users online.
Redis over Memcached
I have switched over to Redis from Memcached for all caching purposes because it has more advanced options like lists and sets. I am using the WordPress plugin called Redis Object Cache.
I have implemented caching for all WP_Query calls, so the site should load much faster. The index page only uses two database queries while the single post page uses five.
The site now loads ten posts per page, up from five. This is possible without sacrificing speed due to extensive caching and the lazy loading of images.
You will also notice that the index page now shows only two paragraphs followed by one image rather than all the content before the Read More tag in WordPress.
I stopped using the Read More tag and rely on DOMDocument in PHP to parse the content and always extract two paragraphs and one image.