setdirection / twinput

Rich twitter input

Home Page:http://setdirection.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache your recent tweets in local storage

dalmaer opened this issue · comments

Speed. speed. speed. When the app loads it can load from there and then an update "thread" can get the latest.

I'm using jTwitter plugin to get recent tweets (and other user info), though it seems to have bugs -- dalmaer only has 2 recent tweets.

How often to reload and what mechanism to trigger?

I used sessionStorage() earlier. Should it all be localStorage()? Does jQuery have a test for browser support or do I have to write that?

localstorage for saving tweets yeah.

for now, poll every minute or so?

jQuery has a storage (jquery-storage I believe) plugin that can abstract it to work cross browser, but for now we can also assume it is there......