Hacker News new | ask | show | jobs
by ericmoritz 5454 days ago
Yeah, Generate the data (JSON) that the javascript will work with, don't generate the javascript. That way we can have easy to serve, easy to cache static javascript.
1 comments

Generated JavaScript can be served and cached just like static .js files. It doesn't have to be embedded in the HTML.