Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MattMitchell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
MattMitchell
18y ago
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?