How to combine synchronous and asynchronous JavaScript function calls for getting data from client side cache or REST service (with jQuery).
When the user clicks on the "Execute" button for the first time, the data will be retrieved from a REST service. The second time the data will be retrieved from the cache.