Better HN
topnewbestaskshowjobs
Log inSign up

MattMitchell

3 karma · joined Feb 11, 2009 (17y ago) · 2 submissions

Submissions

comment 17y ago · link · parent

Um, I'm not sure I'm reading this right but you hard-code your prices in JS to cut down on an AJAX call.

Why not just print your JS from server-side - i.e. you can still have your prices in your JS but have the server generate these?