Minify CSS and JS files HTTP/2

To work properly, websites contain multiple CSS and JavaScript files. These must be fetched from the server by the visitors’ computer, to fully load a webpage. In the old standard, HTTP/1, only one request at a time could be handled, so minifying and concatenating multiple files was a good idea. Otherwise, visitors would experience a slow website because of too many requests. The new standard, HTTP/2, allows for much easier communication between a visitor and the server.

So, does this increasing move to HTTP/2 mean that it’s no longer necessary to minify and concatenate your CSS and JS files? After all, site speed is still crucial for SEO. Let’s get into that in this Ask Yoast!

Danny O’Neill emailed us his question:

‘With the increasing move to HTTP/2 should we still minify and concatenate our CSS and JS files?’

“In the old standard, HTTP/1, the browser could only open so many files at the same time on your server and thus it was smart to combine those files into larger concatenated files. In HTTP/2 that’s not needed anymore, so no, you don’t necessarily have to do that.

What you need to look at is which portion of your traffic already supports HTTP/2. If that’s the large majority then you can stop doing that altogether. Good luck!”


 

 

 

  • css jss http2
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

IP class

For dedicated server owners.Each IP you order is class 4 Failover and are switchable between your...

Geolocated IP addresse

You have created sites with an international focus and are keen to work on SEO for your target...

The keyword cannibalization

Keyword cannibalization means that you have various blog posts or articles on your site that can...

Editing files using VI

VI is a Linux text editor that can edit most of the files under a Linux architecture (text files,...

Dedicated Server Info manual

This manual is to be used to make all administrators more sensitive regarding few topics related...