3 ms·
Are you purchasing this JS library? Does it not make sense to reduce server load in order to reduce the cost of demonstrating a free product?
by chewmieser 6y ago
Are you purchasing this JS library? Does it not make sense to reduce server load in order to reduce the cost of demonstrating a free product?
- stephenr 6y agoUsing the library is an investment of time, and time is worth money, so yes. Reducing server load makes sense. Use a CDN or proxy, and aggressively cache responses. Adding an entirely faked backend response, so that the examples don't actually show the real traffic it would generate is both adding complexity to the demo, and potentially giving a misleading picture of how usable the library is: for all we know, it's too slow to use as the examples show, because a real HTTP request to a backend is going to be slower than a javascript function returning a pre-determined string.
- BareNakedCoder 6y agoIf instead the salesman took you and a car that included an engine out on a test track, would you not buy the car because the test track was fake? You are not buying the test track so you shouldnt care. You are not buying htmx's demo backend either so you shouldnt care.
- stephenr 6y agoIn your analogy the 'test track' is still close enough to a real road - just as a functional backend providing fake data is real enough to test the functionality.