Merge and Minify (CSS/JS) Should Be Avoided on HTTP/2 Servers

Published: 9 months ago

Merging and minifying files is a great practice if you are optimizing your WordPress website for speed, but it should be avoided on an HTTP 2 server. In this article, we're going to discuss what HTTP 2 is, why it is really good for WordPress performance, and why you don't want to merge and minify files if you're using this new technology.

Both of our favorite performance optimization plugins, WPRocket and Asset CleanUP Pro both allow you to easily merge and minify CSS and JavaScript. This takes all of the individual files that are found on a page, and puts them into a single file. That limits the HTTP request, speeding up your website.

At least, it works very well for an HTTP1.1 based website. Now, with HTTT2, this practice will actually slow down your performance. Here's why.

When loading a website from an HTTP1.1 server, A single request is processed at a single time period. therefore, the browser will first download the CSS, then another CSS, then another JS, then an image, and then the page will be rendered. This happens one after another, until all assets are loaded on the page. If you check a waterfall chart for this type of website loading, you will see that one request ends, and another one begins.

That's why the conventional wisdom is that merging all of these requests into a single larger request is true, and will speed up the loading time of your website. And this is absolutely true. A single HTTP request on an HTTP 1.1 based server will always load quicker then multiple, as there is no waiting period.

Via Upwork

With HTTP 2, All requests are loaded simultaneously. There is no waiting process, and there are the same number of connections for the number of assets being requested. Therefore, merging and minifying will simply create a larger file, taking a longer time to upload and download, leading to a longer render process for the website. By keeping all of your individual files unmerged and minified on WordPress, they can all load at the same time, and each upload and download is for a smaller file, resulting in a quicker loading time.

It's still a good idea to use Asset CleanUP Pro or WPRocket, and this only applies to a server that uses http2. You can check if yours does here:

HTTP2 is much quicker, So if you are considering moving hosts or upgrading your website performance speed, definitely look and see if they support this method of data transfer. Our recommended host,, which is where this website is hosted, supports HTTP 2, so it's a good place to start your search.

Join Our Newsletter
Here's what you get: A once a week newsletter that contains original content, aggregated posts, WordPress deals, and anything else we think you'd like. We don't spam or sell your email address. Unsub at any time.
Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
Steve Deakin
Steve Deakin
4 months ago

Hi, your mailing list form is not working

IsoGroup- Web Dev/Design, WordPress and More

Affiliate Disclosure: Some links on this website are affiliate links. We make commissions for purchases made through those links.

We only recommend items/tools that we've personally used and like.

Full Disclosure | FTC Statement

Join Our Newsletter
Over 4,000 Design Lovers and Problem Solvers.


A relationship driven website creation company.


© ISOTROPIC, LLC 2016-2021
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram