mattdaly/reveal — Issue #10: Caching for ajax requests
Author: mattdaly
Created: 2011-11-17 16:53:11+00:00
State: open

Currently each time an ajax modal is opened it makes the ajax call to download the content, this isn't cached in anyway.

Could 'keep' the ajax on-the-fly modal when it is created (not destroy it on close) and then on each ajax modal open call, look for the modal (perhaps by the data-reveal-url-id attribute (what if it isn't defined?)). If it's there display that, if not then make the ajax call for the content. The first load will still download it, but subsequent loads will use the 'poor man's' cache.