http2

Do current XHR implementations take advantage of HTTP/2?

拈花ヽ惹草 提交于 2019-12-03 22:49:28
This may just highlight some misconception of mine, but I was curious: If you had an HTTP/2 server running and wanted to make XHR requests in the browser to the server, would XHR automatically take advantage of the performance optimisations in headers and such that it provides? Or would it ignore that functionality and operate as an HTTP request? If so, are there any things we can do to use the new optimisations in our requests? You don't need to do anything. If the server supports HTTP/2, XHR will use it. Header compression and such will kick in automatically. Test it: Open an HTTP/2 website

HTTP/2 Java 8, Jetty and ALPN

假装没事ソ 提交于 2019-12-03 21:22:32
I went thru this page: https://www.eclipse.org/jetty/documentation/9.3.x/alpn-chapter.html to have an ALPN boot jar in my classpath and still I can't get it working. I am confused as to know if I need an Open SDK Java 8 than Oracle Java 8. My Java version is: java -version java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) And I'm using the following versions of Jetty and ALPN boot: <jetty-version>9.4.0.M1</jetty-version> <alpn-version>8.1.9.v20160720</alpn-version> <dependency> <groupId>org.mortbay.jetty

Performance benefit of http/2 over http for single request

会有一股神秘感。 提交于 2019-12-03 16:20:31
http/2 is much better than http for websites. It's very helpful if you have to make multiple http calls. But is there any significant benefit for a single call? There are general considerations and specific considerations. The general considerations is that HTTP/2, being a binary protocol, is much easier to implement and has many less corner cases than HTTP/1.1. For example, the fact that HTTP/1.1 headers needs to parsed without knowing in advance header name length and header value length. Another example is whether the HTTP/1.1 parser needs to support obsolete line folding in headers. There

What is the value of using Webpack with HTTP/2

青春壹個敷衍的年華 提交于 2019-12-03 15:49:43
问题 I'm starting a new project and I'm trying to be forward thinking about it. I've used Browserify in the past. For my new project I would like to use either Webpack, Rollup, or SystemJS. Webpack looks by far to be the most mature with tons of awesome features. I'm concerned, though, that Webpack is going to be irrelevant in a year or two with the adoption of HTTP/2. So I'm wondering, what value does Webpack offer for a site being served over HTTP/2? I'm not looking for an opinion, but a factual

Which parts of HTTP/2 are stateful?

↘锁芯ラ 提交于 2019-12-03 15:35:26
Unlike stateless HTTP/1.0, HTTP/2 has stateful components. These parts appear stateful: opportunistic encryption framing layer header blocks This part appears to be stateless: application layer Are there any other parts of HTTP/2 are stateful? 来源: https://stackoverflow.com/questions/33682693/which-parts-of-http-2-are-stateful

Tomcat support for HTTP/2.0?

▼魔方 西西 提交于 2019-12-03 05:32:12
问题 Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this. 回答1: I'm the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2. Tomcat's Mark Thomas has outlined support for HTTP/2 for Tomcat 9. Update Jan 2017 : Tomcat 8.5 supports HTTP/2 see @joe-aldrich answer https://stackoverflow.com/a/37889873/2027465 Considering that Servlet 4.0 is going to have as a

What is the value of using Webpack with HTTP/2

三世轮回 提交于 2019-12-03 04:25:44
I'm starting a new project and I'm trying to be forward thinking about it. I've used Browserify in the past. For my new project I would like to use either Webpack, Rollup, or SystemJS. Webpack looks by far to be the most mature with tons of awesome features. I'm concerned, though, that Webpack is going to be irrelevant in a year or two with the adoption of HTTP/2. So I'm wondering, what value does Webpack offer for a site being served over HTTP/2? I'm not looking for an opinion, but a factual explanation of the benefits of using Webpack with HTTP/2. If there are no benefits, or very little

Does minifying and concatenating JS/CSS files, and using sprites for images still provide performance benefits when using HTTP/2?

◇◆丶佛笑我妖孽 提交于 2019-12-03 04:04:41
问题 With the new HTTP/2 protocol the overhead created by repeated HTTP requests to the same server has been greatly reduced. With this in mind, are there still any significant performance advantages to minifying and concatenating JavaScript/CSS files, and combining images into sprites? Or are these practices no longer useful when HTTP/2 is being used? 回答1: They're still useful. HTTP/2 reduces the impact of some of these practices, but it doesn't eliminate their impact . Minification remains as

What is the difference between HTTP 1.1 and HTTP 2.0? [closed]

强颜欢笑 提交于 2019-12-03 00:04:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . HTTP/1.1 has served the Web well for more than fifteen years, but its age is starting to show. Can anybody explain what is the main difference between HTTP 1.1 and 2.0? Is there any change in the transport protocol? 回答1: HTTP/2 supports queries multiplexing, headers compression,

How does HTTP2 solve Head of Line blocking (HOL) issue

北慕城南 提交于 2019-12-02 19:35:51
How does HTTP2 solve Head of Line blocking (HOL) issue? This problem is very frequent in http1.1, but I heard HTTP2 has fixed this problem. Could someone explain how exactly HTTP2 fixed the problem? HTTP Head of line blocking Head of Line blocking in HTTP terms is often referring to the fact that each browser/client has a limited number of connections to a server and doing a new request over one of those connections has to wait for the ones before to complete before it can fire it off. The head of line requests block the subsequent ones. HTTP/2 solves this by introducing multiplexing so that