5 ways to improve website speed with HTTP / 2
HyperText Transfer Protocol version 2 (Hypertext Transfer Protocol version 2) or HTTP / 2 is the latest HTTP standard. Updates to this protocol will improve the speed, performance and security of web traffic. However, the conversion process does not happen automatically.
This article is intended to give you insight into HTTP / 2 and how to configure the website or server to take advantage of new features.
How to improve web page loading speed?
- What does HTTP / 2 mean for users?
- How will HTTP / 2 affect website design?
- HTTP concepts need to be captured
- 5 website changes need to implement HTTP / 2 optimization
- 1. Don't combine CSS or JavaScript
- 2. Not inline the script in HTML
- 3. Stop using CSS Image Sprites
- 4. Do not use Domain sharding
- 5. Take advantage of push server
- How to configure the server for HTTP / 2
What does HTTP / 2 mean for users?
For ordinary users, changes from HTTP / 1.1 to HTTP / 2 will be no big difference.
All browsers will require valid TLS (Transport Layer Security) certificates to 'serve' sites via HTTP / 2. Therefore, in addition to faster page loading, as well as increased site security.
For designers and web owners, HTTP / 2 can improve the loading speed of websites on all devices.
All modern browsers have supported the new protocol standard (but some mobile browsers still do not support HTTP / 2). However, in case the browser or server does not support HTTP / 2, the HTTP / 1.1 standard will automatically be used.
How will HTTP / 2 affect website design?
The changes introduced in HTTP / 2 will affect how users optimize web pages and servers to be effective and best.
The new features introduced in HTTP / 2 allow users to overcome many of the drawbacks and limited optimization techniques of HTTP / 1. This includes no longer inline scripts (inline scripts that are not loaded from external files, but embedded within HTML) or combining files to reduce the requirement for the server. Domain sharding (a technique to divide resources across multiple domains to improve page load time) is no longer useful.
In some cases, these restrictions will even negatively affect page speed if it is applied to the HTTP / 2 protocol.
Most Internet traffic is based on mobile devices, so consider internet speed on mobile devices and keep media files small, optimize them for these devices. Users should also continue to minify (techniques to reduce the available file size) JavaScript (JS), HTML and CSS.
HTTP concepts need to be captured
In the case of not familiar with the terms mentioned in this article, this is a quick introduction to the HTTP concepts to grasp.
Inlining Script is to add JavaScript directly to HTML documents with tags
You should read it
May be interested
- Add Google Analytics feature to WordPress pagerecently google has added a new feature to their analytics software, allowing users to track the speed at which they load the current website. google also offers many tools to help administrators improve the speed of their website.
- What is HTTPhttp is an application-level protocol for distribution, collaboration, multimedia information systems, which is the foundation for data communication for www (eg internet) since 1990. http is a common protocol and stateless that can be used for other purposes as well as the scaling of request methods, error codes and its header.
- Guide to speed up website loading in a simple wayaccording to kissmetrics, 47% of users expect a website to load in about 2 seconds, 40% of users will abandon a website if it takes more than 3 seconds to load.
- Request (HTTP) in HTTPa client sends an http request to a server in the form a request message that includes the following format.
- What is http error 500? How to fix it?while accessing the internet, http error 500 occurs, making it impossible for us to access the website anymore. so what is the cause of this error? how to fix it?
- How to fix 403 Forbidden Errorthe 403 forbidden error is an http status code error, which means that the page or source being accessed is completely banned for some reason. different web servers report 403 errors in different ways, some website owners even customize the http 403 error, but not common.
- How to speed up web pages with tagsbrowsers show the future of the fastest internet surfing, giving users essential resources, even before they know they really need it.
- Find out what is HTTPS? Why should you use HTTPS instead of HTTP?the question 'what is https? why should we use https instead of htpp?' many people are learning and paying attention today. http or https is the starting element in the website url. understanding this, tipsmake will answer in the following article.
- What is HTTP Flood?http floods are a type of ddos attack in which an attacker exploits seemingly legitimate http get or post requests to attack a web server or application.
- How does a tri-band router improve Wi-Fi speed?upgrading to a high-speed internet connection won't automatically speed up your network. you'll also need a router that can take advantage of new wi-fi technology, has more wi-fi bands, and supports modern features.