When you inline expensive computations in script tags directly those will delay loading of the page. For anything particularly expensive, I would probably wait until the DOM is ready. If this calculation is happening server side then prevent your script from delaying page load by asynchronously calling the server via XMLHttpRequest.
Probably best to get a copy of JavaScript: The Definitive Guide if you need more details on best practices. David On Fri, Feb 17, 2012 at 10:09 AM, Brent Millare <brent.mill...@gmail.com>wrote: > Honestly I have no clue what to do. I'm new to javascript for webpage > building. Before even trying to learn javascript I'm just wondering the > approaches, pros/cons to do this. You'll have to elaborate a little bit, if > you don't mind. -- 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