Automatic draft-saving plus Sefaria auto-linker leads to the post taking too long to save


If I write up a post on any other Codidact site, the auto-save feature isn't too bad; every time I click around in the text box, or pause for a moment, it briefly autosaves.

If I write up a post on Judaism Codidact that is strictly HTML-based, the same easy-to-use functionality holds.

If I write up a post on Judaism Codidact that uses a source which calls the Sefaria auto-linker is longer than some amount of characters (not sure what the limit is, but it's on the longer side), rather than taking maybe half a second to auto-save, it instead takes closer to 5-10 seconds (depending on post length and how many Sefaria links there are) to auto-save. Whereas in general clicking to a different part of my post does not trigger the auto-save unless I also pause long enough in my typing, if Sefaria Linker is called I can't click out without waiting on the auto-save to do its thing.

This bug holds regardless of browser; I can try to grab a console log if you need it. My theory atm is that the Sefaria linker is called on auto-save for the preview, and the longer the post, the more it struggles to parse the entire post in a smallish amount of time.

Why should this post be closed?


GitHub issue tracking this, in which I propose several approaches to what sounds like a general problem and not just the Sefaria linker. ‭Monica Cellio‭ 6 days ago

Can't reproduce this one, even with stupidly long posts. Don't know what's going on there. ‭‮edoCfOtrA‭ 4 days ago

@ArtOfCode Editing works mostly fine on Firefox, but Safari consistently gives me issues. ‭DonielF‭ 2 days ago

0 answers

Sign up to answer this question »

Like any library, this site offers tons of great information, but does not offer personalized, professional advice, and does not take the place of seeking such advice from your rabbi.

This site is part of the Codidact network. We have other sites too — take a look!

You can also join us in chat!

Want to advertise this site? Use our templates!