Fork me on GitHub
#figwheel-main
<
2020-03-11
>
andrea.crotti12:03:37

posting here since it's maybe more relevant, I was asking a question on #clojurescript https://clojurians.slack.com/archives/C03S1L9DN/p1583926342011900

andrea.crotti12:03:09

so how do people in general deal with the fact that during local dev if you have lots of js libraries it loads the browser needs to load a gazillion files?

andrea.crotti12:03:40

shadow-cljs apparently still merges them all into one by default, can I get the same behaviour somehow or at least make sure they are all cached somehow?

pyrmont12:03:14

Is it a big problem? Even if they're merged, the amount of data is the same. Is the HTTP overhead considerable for local dev?

andrea.crotti13:03:24

well I see 2400 different requersts for small JS files in one project

andrea.crotti13:03:31

which takes forever every time I load the page

andrea.crotti13:03:57

I have to investigate why so much

andrea.crotti13:03:37

is not a big project, but anyway at least they should all be cached and just return a 304

andrea.crotti13:03:11

in prod is just 25 requests just because of the various. analytics, and it takes infinitively less time to load

pez13:03:51

I do not have that problem in my half-big project...

andrea.crotti13:03:15

do you use the figwheel ring server or your own?

pez13:03:31

Just figwheel's. Is that why I don't have the problem, you think?

andrea.crotti14:03:27

mm no it still does lots of requests, but looks like 428 instead of 2400

andrea.crotti14:03:42

so it is still better with the figwheel ring server for some reason

pez14:03:00

Maybe that's what I have. Will check the project tomorrow and see.

andrea.crotti14:03:07

yeah well it's still 428 requests that should return 304 instead of 200 tbf

pez16:03:13

So it is loading the page that is the problem, not hot reload?

pez16:03:57

b/c I get 388 requests when I load the page. I use server side rendering so it never feels very slow.