Title: HTTP/2 max concurrent streams
Last modified: February 18, 2017

---

# HTTP/2 max concurrent streams

 *  [wildmice](https://wordpress.org/support/users/wildmice/)
 * (@wildmice)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/http2-max-concurrent-streams/)
 * Hi Frank,
 * Finally getting my feet wet in HTTP/2 and searching for the best way to optimize
   for it. While some say that file aggregation should be abandoned, it looks like
   there is still a benefit to aggregation under HTTP/2 in that it can help keep
   the number of concurrent streams below the limit used by servers and browsers(
   typically 128 or 256 streams).
 * It might be useful to have an option to set the max number of concurrent streams
   and then, if that is set, have AO only do sufficient aggregation to keep the 
   total number of css and js files below that setting, aggregating into a small
   number of files rather than one single file.
 * Take care,
    Shanna
    -  This topic was modified 9 years, 3 months ago by [wildmice](https://wordpress.org/support/users/wildmice/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/http2-max-concurrent-streams/#post-8819682)
 * always great to hear from you [@wildmice](https://wordpress.org/support/users/wildmice/)!
   interesting info there Shanna, the max nbr. of streams was something I hadn’t
   really thought about yet .. i’ll have to let this sink in a bit 😉
 * but there are two other things to keep in mind when doing HTTP/2 with or without
   AO:
    * HTTP/2 does not minify CSS/ JS * bigger files compress (deflate/ gzip)
   better then smaller files, so aggregation still makes sense
 * based on the above, I would advice to go for the whitelist-approach (using the
   API), aggregating the “main” CSS/ JS i.e. the one used on (almost) every page.
   that way you’ll have an aggregated, minified, browser-cacheable file will be 
   more “compressible” and you’ll bring your number of requests (streams) significantly
   down, allowing the remaining CSS/ JS to be served in the same HTTP/2 connection?
 * have a nice weekend!
    frank
 *  Thread Starter [wildmice](https://wordpress.org/support/users/wildmice/)
 * (@wildmice)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/http2-max-concurrent-streams/#post-8820650)
 * Hi Frank 🙂
 * In this case i inherited a large, very slow site with around 60 plugins and well
   over 200 resources to fetch. I wanted to get that down to 128 resources.
 * Luckily, using AO the normal way was good in this situation, and it brought the
   number down to 138. Not perfect, but it reduced the load time from 14.5 to about
   11.5 seconds.
 * This is what got me thinking that for even larger sites it would be useful to
   be able to aggregate into several rather than one single file. So if we could
   simply specify the number of files we wanted for css and for js, then we could
   tweak things to bring the number of resources down to the point of optimum performance.
 * Shanna

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTTP/2 max concurrent streams’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [HTTP/2](https://wordpress.org/support/topic-tag/http2/)

 * 2 replies
 * 2 participants
 * Last reply from: [wildmice](https://wordpress.org/support/users/wildmice/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/http2-max-concurrent-streams/#post-8820650)
 * Status: not a support question