zioth / dokuwiki_fastwiki

DokuWiki plugin which speeds up user interactions by avoiding page loads, rendering content client-side and pre-loading content.
GNU General Public License v2.0
9 stars 2 forks source link

Enhance preload with localStorage #9

Open zioth opened 9 years ago

zioth commented 9 years ago

Make the preload feature faster by using the browser's localStorage to remember preloaded pages from session to session.

To start, save a map of pageid to visit count in localstorage. When visit count gets high enough (2 or 3?), save the entire page in localStorage. I'll still have to check each stored page's revision number, but I can load the cached page before the check, or make the check as part of the preload process.