Re: Minimizing the download of js code in Multipage ClojureScript webapp

2013-01-28 Thread Marcus Holst
Thanks for the tip, Mimmo! On Sunday, January 27, 2013 11:33:46 PM UTC+1, Mimmo Cosenza wrote: > > Hi Marcus, I found the same solution Evan suggested to you. You can read > about it here. > > https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-06.md > > and you can also define a s

Re: Minimizing the download of js code in Multipage ClojureScript webapp

2013-01-27 Thread Mimmo Cosenza
Hi Marcus, I found the same solution Evan suggested to you. You can read about it here. https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-06.md and you can also define a single init function which is shared by each source cljs files by passing it the parameters you need to setup

Re: Minimizing the download of js code in Multipage ClojureScript webapp

2013-01-27 Thread Marcus Holst
Thanks Evan! I actually already started along this big js blob path and was just beginning to see the problem with clashing page inits. Your solution with an init func per page will probably do just fine for me too so I'll try that now. With conditional caching on the big js file, it should only

Re: Minimizing the download of js code in Multipage ClojureScript webapp

2013-01-27 Thread Evan Mezeske
I solved this problem for my web app in a different way, which might be worth considering. My entire ClojureScript project compiles to a single JS file which is used by every single page. I organized things such that each page had a cljs namespace associated with it, which has an "init" functi