{"version":"1.0","type":"rich","title":"$.cacheFactory","description":"This example demonstrates a reusable caching mechanism for asynchronous jQuery operations, specifically applied to script loading. It shows how the `$.cacheFactory` function wraps an arbitrary factory function—here, `$.cachedGetScript`—to memoize deferred promises keyed by URL. The code uses jQuery’s `$.Deferred`, `$.getScript`, and `.promise()` to ensure each script is fetched only once, while subsequent calls with the same URL receive the already-resolved promise and execute their callback immediately. The implementation relies on a plain JavaScript object as the cache store, with no external data source or rendering involved.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1144288?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}