What I would suggest is just writing script tags. The module definition is
pure data so you could use this to produce the right scripts tags on your
pages in dependency order.

It maybe possible to use the async loading stuff provided by Closure but I
don't know much about it myself. If someone can me point to an example that
combines Closure code splitting with async loading I'd be happy to take a
look and consider it.

David

On Sat, May 23, 2015 at 10:09 AM, Matthew Phillips <
[email protected]> wrote:

>  Thanks! That answers the splitting part, glad to see that's incorporated
> into cljs directly. What about the loading part?
>
>
> On Sat, May 23, 2015, at 10:03 AM, Oliver George wrote:
>
> http://swannodette.github.io/2015/02/23/hello-google-closure-modules/
> On 23 May 2015 11:40 pm, "Matthew Phillips" <[email protected]>
> wrote:
>
> Has anyone tried to set up progressive loading? On a large site you
> might not want to load all of your javascript right away, but delay
> loading page 2 until the user clicks to go to that page.  Closure's
> ModuleManager is probably the way to do this, just wondering if anyone
> has done it before:
>
> https://code.google.com/p/closure-library/source/browse/closure/goog/module/modulemanager.js?r=aaa0492e49498ab5ceb6c83ffdaa68115c43748c
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to