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?
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.