vojtech-dobes / history.nette.ajax.js

Adds History API support to nette.ajax.js addon!
30 stars 27 forks source link

use localStorage for snippets cache #25

Open Ciki opened 9 years ago

Ciki commented 9 years ago

However, I'm not sure now this is the right approach as it does not handle situations when localStorage is full (5MB)

Tomas2D commented 8 years ago

Very useful! +1

becygroup commented 8 years ago

@Ciki I think you can you something like localStorage.removeItem(snippetsOrHash); in loadSnippets function

zipper commented 7 years ago

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.