Hi, Putting javascript at the bottom of body is nice idea. Thanks. 2012/1/2 Stuart Sierra <the.stuart.sie...@gmail.com>: > Hi Takahiro, > > This will work. It's not 100% idiomatic Clojure, but it's an acceptable > workaround to the DOM loading issue. > > If ClojureScript had `alter-var-root`, which it doesn't, you could use that > to set the Vars in your init function. But ClojureScript doesn't really have > Vars either, so I wouldn't expect to see `alter-var-root`. > > If ClojureScript had Clojure's `delay`, you could use that. ClojureScript > doesn't have `delay`, but it might make sense to add it. > > The easiest way, of course, is to load your JavaScript at the bottom of your > HTML file, but that's not always convenient. > > -Stuart Sierra > clojure.com > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en