Portal Home > Knowledgebase > General > Minify CSS and JS files HTTP/2


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!”


 

 

 



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
IP class (Views: 5070)
Geolocated IP addresse (Views: 2008)
Editing files using VI (Views: 1731)