Open jace opened 11 years ago
Not all browsers would support local storage.
Seems to be universally supported: http://caniuse.com/namevalue-storage
As of https://github.com/hasgeek/hasjob/pull/251, we have switched to loading filtered views through AJAX (and pushState). But, we're still seeing performance issues: loading a filtered view can take anywhere between 800ms to 2s (or even higher on a slow internet connection). We should aim for sub-100ms responses from the server. So, it looks like we would have to test two approaches:
Given that our use-case is rendering a fairly static section of the page (the list of stickies), my current sense is to go with approach 2. It keeps the architecture simpler (no need to integrate Node) and lets the server optimize the rendering (caching one user's response automatically benefits every other request).
In Hasjob's new avatar as a rich client app, job cards should be cached locally so that the server only needs to send the newest cards. Reloading the page takes way too long on mobile.