I have an OpenResty (nginx) with HTTP-2 running for local development. Just 
switched off H2 and DomContentLoaded increased from 2.1s to 3.6s. That's for 
~290 js files. The last JS file was done downloading ~1.3s for H2 and 2.4s with 
HTTP-1.1.

So maybe also give HTTP-2 a closer look.

HTH

On Friday, January 20, 2017 at 5:09:54 PM UTC+1, Justin Ratner wrote:
> We have a fairly large project in which we require a good bit of closure 
> library functionality. While developing with :optimizations :none, hundreds 
> of closure library files are loaded when the page loads. This means that the 
> page takes 7-10 seconds to load. That doesn't seem like much, but when you 
> are refreshing the page many times while developing (I don't always trust 
> code-reload), it adds up.
> 
> Most of the time is spent waiting for browser connections to open up, so the 
> next file can be downloaded. Most browsers can only download a handful of 
> files from one domain at once.
> 
> Wouldn't it be better if the closure library was served in a single js file?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to