-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving files via HTTP2 #673
Comments
In the new version of the figwheel repl/server I'm using jetty so this certainly seems possible, SSL is also another possibility. |
Another idea I had would be to somehow serve |
Yeah I thought about that a while back and it is very tricky. |
Respectfully, I hope figwheel gains the ability to start an https service. In the node ecosystem there are various key-generating tools such as this one. Throw-away keys are fine for development. |
I think using HTTP2 would greatly improve the page load performance of projects using Figwheel. Anecdotal reports on Clojurians also suggest this is the case for ClojureScript dev projects. With HTTP 1.1, browsers will only open up to 6 requests at a time to a single origin. This means that lots of the static file requests end up blocked, waiting in line. With HTTP2, this wait would be eliminated as the browser can make many requests over a single stream.
It would be interesting to see what would be involved for Figwheel to serve assets over HTTP2, and to quantify the performance improvements. It would need to be an opt-in thing, because HTTP2 requires SSL, even in localhost, and setting that up can be a bit of a pain.
The text was updated successfully, but these errors were encountered: