I created the switch yesterday, and every one being well the new DNS settings have propagated through. At some purpose presently I can begin forcing all communications protocol traffic to HTTPS.

The site continues to be engineered with Jekyll and hosted on GitHub Pages, however it’s currently fronted by Cloudflare United Nations agency supply a excessiveness of performance-related services. i used to be solely very interested in HTTPS as a result of it permits ME to use, among different things, HTTP/2 1, Brotli, and repair employee (I’m not really victimisation the latter 2 nevertheless, however currently a minimum of I can), and once my pal James tipped ME off on just however simple the method is, I got stuck in and got it done.

As associate aside, I had some problems specific to my domain registrar (not GitHub or Cloudflare) that my excellent friend Steve helped out with. He’s a really proficient package and Ops engineer United Nations agency managed to unravel in minutes a haul that had troubled ME all day. Thanks, Steve!


My website is totally static; it doesn’t take any user input, there’s no logic or scripting, no info, therefore I didn’t desire the requirement for HTTPS from a security purpose of view was all that pressing2. However, HTTPS could be a requirement for variety of different technologies, and having a secure site—regardless of its content—is ne’er a nasty factor. a lot of on the primary bit in a very moment, except for currently i would like to speak a touch concerning security.

I imagine that though most users won’t have abundant of associate understanding on the technical implications behind a secure or a not-secure website (I’m hesitant to use the word insecure), they’re turning into aware that there’s such factor as security. With Google’s intent to mark bound websites as insecure, and therefore the general increase in awareness, users do grasp that secure websites ar a factor. The implication, therefore, is that any website that isn’t expressly marked as being secure should be insecure (whether that’s really the case or not).

To this finish, i believe that HTTPS is the maximum amount associate exercise in stigmatization and trust as it’s in security, which it’ll steady become a lot of and a lot of omnipresent. this is often solely an honest factor.

Further, HTTPS is needed so as sure different technologies to be utilised:

• Brotli, associate improved compression rule from Google, must run over HTTPS thanks to third parties (ISPs, proxies, etc.) infamously making an attempt to recompress already compressed transfer. By preventing them gaining access to it in the primary place, it implies that they can’t strive running gzip over a replacement, unknown content secret writing (e.g. Brotli).
• Service Worker completely must run over HTTPS, as a result of it’s essentially a person within the middle. We’re building a proxy that sits in between our users and our servers, therefore the want for security there ought to be pretty clear.


HTTP/2 (or H2, as it’s normally referred to) could be a huge, huge improvement on the HTTP/1.1 protocol that we’ve been victimisation for pretty much twenty years. It brings several advantages to each developers and users, however several of its best options ar centred around performance:

• Compressed headers: HTTP/1.1 sends its headers uncompressed, that creates a stunning quantity of overhead. HTTP/2 reduces that by compression the response headers also because the response body.
• Multiplexing: get around head of line obstruction and lack of parallelisation by causation multiple assets asynchronously over identical TCP association.
• Server push: permits developers to send late requested assets preemptively.

A lot of HTTP/2’s additions can moot the domain sharding, concatenating, and inlining ways we have a tendency to came up with as hacks, and can instead permit North American nation to deliver quicker experiences with easier architectures: we are able to optimise assets all we have a tendency to like, however there’s no denying that HTTP/2 provides developers associate astounding performance boost right out of the box.

Currently I’m not creating that abundant use of something HTTP/2 offers ME apart from multiplexing and header compression (because I didn’t even got to raise a finger for those). My website is already pretty slim, and I’m serving therefore few assets that one may nearly argue over-engineering, however one very nice example of wherever i will be able to have the benefit of HTTP/2 multiplexing is that this relatively giant list of pictures on the homepage.

Browser Support

Support for HTTP/2 is pretty good, and invariably rising. Servers capable of serving over HTTP/2 will still deliver to HTTP/1.x clients, therefore nothing can break.

However, it’d not be time for your company to modify over too. sadly, HTTP/2 best practices become unhealthy practices in HTTP/1.1, and HTTP/1.1 best practices become unhealthy practices in HTTP/2. Optimising for one can be damaging to the opposite, and it’s pretty laborious to satisfy each camps.

Fortunately on behalf of me, viewing the information, over the past twenty four months over eighty fifth of CSS Wizardry’s traffic has return from a browser that supports HTTP/2. on behalf of me it’s pretty clear that victimisation HTTP/2 is that the right call. different firms (government, ecommerce, etc.) won’t have quite such a transparent cut read.

What Next

Next up, I will verify implementing an easy Service employee to supply higher caching ways, also as an easy offline page for users on poor or non-existent connections. I ought to conjointly inspect ripping up my CSS into a lot of granular, singly cacheable chunks.

Unfortunately, providing i’m still hosting on GitHub Pages, i’m restricted in what proportion I will implement. Things like facultative Brotli can got to be done by Cloudflare, and utilising Server Push would need access to server-level configuration. That stuff can got to wait, however I will most likely manage while not it while I’m serving up a flat-file web site with such atiny low footprint within the initial place.

With all of this same, despite HTTP/2’s clearly superior approach to optimising user experiences, there’s still nice want for basic performance data at intervals teams: optimising assets, structuring a lot of elegant delivery, and building to support non-HTTP/2 environments ar all still important.

If you’d like every recommendation or facilitate with any of the higher than, i’m lining up performance practice work for Q2 onward. Get in touch.

Contribute For Site / Staff (Non-Profit Site) Just $4.99