Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ericmoritz
· 15y ago · 0 comments
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.
Comments
[–]
funcall
15y ago
Generated JavaScript can be served and cached just like static .js files. It doesn't have to be embedded in the HTML.