history.nette.ajax.js
history.nette.ajax.js copied to clipboard
use localStorage for snippets cache
However, I'm not sure now this is the right approach as it does not handle situations when localStorage is full (5MB)
Very useful! +1
@Ciki I think you can you something like localStorage.removeItem(snippetsOrHash); in loadSnippets function
It might be useful to make methods loadSnippets and saveSnippets available from outside this extension, so you can use them in another custom extensions. Eg. $.nette.ext('history').loadSnippets(...) as is in your forked repository.