learningequality/ka-lite — pull request #845 by aronasorman (2013-10-16 08:49:45+00:00)
Title: Local storage search

Here's an alternative to the "start fetching only on 1st keypress" solution to the slow page load. This basically caches the topic tree titles onto localStorage when present (which is basically in all browsers except IE versions < 8). Therefore we avoid fetching the 1.1 MB JSON except on the first page load of KA Lite.

I got motivated to do this because I was having usability issues with the other solution: Autocomplete suggestions don't appear when I start typing and wait, and only come back once I start typing again. So this PR also contains a revert of that solution, restoring the autocomplete to the previous behavior.

@bcipolli can you test this if page load feels snappy again (hopefully by the 2nd reload)?