4 ms·
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
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?
- patio11 18y agoEasy, fast, and clean all in one little packet of geek joy. I like this suggestion a lot. Thanks. (The whole code-generates-code thing is still taking me some time to get used to... even though I spent several hours yesterday writing code-generates-code-generates-essay.)