What do I have to do to use HTTP / 2?
The first thing you should know is that ] the latest versions of the most used browsers are already compatible with HTTP / 2 which is also compatible with previous versions of the protocol, so if you decide to pass to HTTP / 2, you do not lose any users, neither visit nor sale .
The only thing you need to Benefit from this improvement is an SSL certificate and that your hosting provider enables HTTP / 2 on your server if you are already prepared for it. If you are already working with a provider like SiteGround ask to have this functionality enabled, since your servers are ready .
If you have a online store surely you already have an SSL certificate so, what are you waiting for? Speed up your website! Start using HTTP / 2!
HTTP / 2 and WordPress
Actually you do not need to do anything in WordPress so you can use the HTTP / 2 protocol apart from having an SSL certificate installed and active and that your hosting provider will activate HTTP / 2.
On the other hand, when using HTTPS, you must make sure that you are serving all your content in https , without mixed content that is, that there is nothing in your site that is still used in http.
Where if you have to do some work, if you did not do it already when going to HTTPS and it is to check that you do not use anything in http, instead of https .
I am referring to images, permanent links, redirects, etc. You should check your WordPress configuration file ( wp-config.php ) to verify that you define your routes with https, and the file .htaccess to review any possible redirection that you still have to an http, for example.
Also, it's not too much to check if there is a plugin that generates absolute http addresses instead of relative ones, whatever that might be.
Of course, you should have in Settings -> General the site address and WordPress in https.
There are plugins like, Really Simple SSL the one that I recommended you the other day talking about SSL which does most of this work, but it does not hurt a review for mixed content. The same browser will inform you if this is happening or not.
But come on, that in principle you do not have to do anything to use HTTP / 2 that you should not already do to have your WordPress with HTTPS but if you were not exhaustive at the time maybe now it is not too much to put yourself to it, for take advantage of all the advantages of both technologies .
HTTP / 2 and developers
Over the years, developers and experts in SEO have developed practices to try to bypass the restrictions and weaknesses of the HTTP / 1.1 protocol, so both plugins and themes have been incorporating a series of tricks that, if active HTTP / 2 is not only necessary but they are counterproductive .
This, which is a good idea if you're on HTTP / 1.1 is just what you should not do in HTTP / 2 because you do not need it and you will be using resources and processes that harm the performance of your web, being unnecessary.
What is a practice totally discouraged in HTTP / 2 is the fragmentation in several domains known as " sharding ", since it forces more DNS queries.
In short, if you are a developer of WordPress themes or plugins, keep in mind that you do not need to use more sprites or combine unnecessary files or upload assets in your code .
In short, is a good idea to set up HTTP / 2 on your website since you're going to improve the user experience, thanks to the fact that Downloading the page will be faster and more orderly, and is compatible with your current site, and in principle you do not have to implement anything in your code, nor install any plugin or anything similar.
The HTTP improvements / 2 are tremendous and views in a practical way can be summarized in …
- Web faster
- Web more secure, it forces the adoption of SSL
- Web more optimized for mobile
- Less consumption of server resources
In case you are not clear enough, I summarize the changes you must do on your website to offer maximum speed and an unbeatable user experience :
- Activate a CDN
- Offer your secure website through HTTPS with an SSL certificate
- Ask your hosting provider to activate HTTP / 2 on the server
Do you already have your website on HTTP / 2? Do you have any doubts? Something that has happened to me?
If you want to ask or share something about it, do not cut yourself, we're all looking forward to your doubts or advice and so we learn more. There you have the comments.
This article would not have been possible without the inestimable help of the great Fernando Puente that to see if at once he registers as a user of the blog and the solito is encouraged 😉