Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing interrupted by preview updates #21

Closed
ocdtrekkie opened this issue Mar 30, 2015 · 14 comments
Closed

Typing interrupted by preview updates #21

ocdtrekkie opened this issue Mar 30, 2015 · 14 comments

Comments

@ocdtrekkie
Copy link

Okay, trying to type in a Hacker Slides, and this is killing me. Every time I type like... a letter, the next two letters aren't recognized because the program is busy re-rendering the preview with the last letter in it. I've taken to typing in Notepad and copy/pasting lines into the Hacker Slides.

@jacksingleton
Copy link
Owner

Do you know if the text gets saved, even if it doesn't show in the preview?

Try waiting a second, add one letter, and see if the preview catches up with all the text it missed.

If so I'll collapse this issue into #6.

It definitely needs to be fixed :) The way save/preview currently works is very hacky and naive. It falls down when any significant latency is present.

@ocdtrekkie
Copy link
Author

When I start typing a word, while it's generating a preview, the missing letters never show up. I'll just get the letters after it finished generating the preview. Of course, then I have to wait for that preview to generate before I can delete those letters to fix it. It's a vicious cycle. ;)

@ocdtrekkie
Copy link
Author

And the issue isn't with it being missed in the preview, it's missed in the input window entirely. I think it's a separate issue.

@larjona
Copy link

larjona commented Sep 26, 2015

I'm having this issue too. My work around is creating my slides in my local editor (with markdown highlight) and select_all+copy+paste_in_hacker_slides from time to time.

@JonTheNiceGuy
Copy link

Likewise. Is there anything I can do to help here?

@jacksingleton
Copy link
Owner

I've changed slide rendering to happen only after a save completes successfully. Let me know if this improves things!

@erdii
Copy link

erdii commented Jan 4, 2016

To me typing is still extremly laggy :(
Chars are dropped at 50% of keypresses when I type fast.

I recommend increasing the delay time for saving in static/js/save.js:18 to 500 or even more ms or adding an option at runtime to toggle saving at all.

@erdii
Copy link

erdii commented Jan 9, 2016

Actually the issue IS already fixed! I'm sorry!
It's just that the package from Sandstorm App Market was outdated.

@jacksingleton
Copy link
Owner

@ocdtrekkie, @larjona, @JonTheNiceGuy

Could you let me know if this is still an issue for you and if so what browser you are using?

And if you have time, it would be super helpful to know if this issue is fixed in the new "plain text mode" -- which I just pushed out a few days ago.

@JonTheNiceGuy
Copy link

Both states work like a dream on Firefox for Android. I'll try to test from Ubuntu with Firefox and Chrome tomorrow.

@erdii
Copy link

erdii commented Jan 22, 2016

On OS X the perf is good on Firefox (latest) and Chrome (latest).
Still have to test with Safari, IE and on Mobile

@larjona
Copy link

larjona commented Jan 27, 2016

Works for me in Debian Stable + Iceweasel (Firefox) 38.5.

Thanks!

@jacksingleton
Copy link
Owner

Thanks for the feedback everyone! I'm going to close this now, feel free to open another issue if you run into problems.

@lotcz
Copy link

lotcz commented Nov 15, 2017

Hello, I am afraid this issue is back. In Firefox it is eating characters that are written during the refresh, in Chrome it is little better, but still very laggy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants