Re:ClojureScript 1.7: ClojureScript can compile itself
by mateuszf on Saturday August 01, 2015 @01:00AM
(#9986004)
> Oh, my comment wasn't at all clear, but I was talking about inclusion on web pages, where you'd be flicking forward and back between them
On the other hand - in case of single page webapps it would only be loaded once and could be made to load only once thanks to browser caching.
Re:ClojureScript 1.7: ClojureScript can compile itself
by virtualwhys on Saturday August 01, 2015 @06:48AM
(#9986596)
It would load only once SPA or not, that's the point of browser caching.
Re:ClojureScript 1.7: ClojureScript can compile itself
by tomconroy on Saturday August 01, 2015 @09:46AM
(#9987004)
He's referring to parsing the JavaScript on page load.
Re:ClojureScript 1.7: ClojureScript can compile itself
by virtualwhys on Saturday August 01, 2015 @10:02AM
(#9987048)
Ah, missed that bit ;-)
Re:ClojureScript 1.7: ClojureScript can compile itself
by fnordsensei on Friday July 31, 2015 @05:50PM
(#9984744)
You'd probably not want to use this on websites, unless you want to be able to compile code directly in the browser, such as when you're making an interactive tutorial or similar. Otherwise, you're better off with stripping out all of those parts.
I'm sure it's fine for a SPA, and for a mobile app it's a total non issue. Actually I'm planning to use it for one with React Native myself.
Luckily, people will probably not be including the full compiler lightly; I just wanted to point out that it's not as cheap as a jpg of the same size would be, an impression I thought the parent comment was giving.