raymondjacobson / wbp

White Blank Page - Get your thoughts down.
2 stars 0 forks source link

switch wbp update polling to something smarter #2

Open raymondjacobson opened 9 years ago

raymondjacobson commented 9 years ago

Some ideas:

raymondjacobson commented 9 years ago

switched to every keypress. might need to do this? if we have it poll at all, it could autosave something on a different tab that hasn't completely updated. Maybe start polling only when a keypress has happened and stop shortly after no keypresses?

just thoughts...

dmastylo commented 9 years ago

You could try having an "algorithm" that waits until the user finished typing then saves. If there is a pause, or a significant amount of time/keys have elapsed, a save is made. An HTTP request each keystroke is so wasteful.

juliusiv commented 9 years ago

Agree with Damian. Can you have it autosave on tab-close too? That's the only downside I can think of, like if they're typing and immediately close the tab before the "pause".

raymondjacobson commented 9 years ago

I had both these things in mind. (Y) On Fri, Jan 2, 2015 at 2:23 PM Julius Alexander IV notifications@github.com wrote:

Agree with Damian. Can you have it autosave on tab-close too? That's the only downside I can think of, like if they're typing and immediately close the tab before the "pause".

— Reply to this email directly or view it on GitHub https://github.com/raymondjacobson/wbp/issues/2#issuecomment-68553854.