setdirection / twinput

Rich twitter input
http://setdirection.com/
1 stars 0 forks source link

Cache your recent tweets in local storage #5

Open dalmaer opened 13 years ago

dalmaer commented 13 years ago

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

ewpreston commented 13 years ago

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?

dalmaer commented 13 years ago

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......