fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

400ms per keydown event. #95

Closed itst closed 3 years ago

itst commented 4 years ago

Hey people. I have an issue with my Kirby Panel. When typing content, the fronend slows down. Look at this. 400ms per keydown event.

Bildschirmfoto 2020-06-24 um 09 31 31

Blueprint: https://pastebin.com/u15SuANU Section: https://pastebin.com/pe3vGVVU

Any ideas?

That’s Kirby 3.3.5 and kirby-markdown-field 1.0.6

seehat commented 4 years ago

I have the same issue with Kirby 3.4.1 and kirby makdown 1.0.6.

sylvainjule commented 3 years ago

Apologies for the delay. The pastebin are no longer available.

Could you setup a complete starterkit where you can reproduce the issue and share it so I have a ready-to-debug example? Because I can't reproduce these performances.

Maybe related to https://github.com/getkirby/kirby/issues/2736

fabianmichael commented 3 years ago

@itst @seehat The upcoming version of the plugin has reached late alpha/early beta status and has a new engine (CodeMirror 6). Please give it a try and test, if the performance got better for you: https://github.com/sylvainjule/kirby-markdown-field/tree/next

seehat commented 3 years ago

Yes, it looks and feels nice and the performance problems are gone for me. Kudos!

fabianmichael commented 3 years ago

resolved in 2.0

itst commented 3 years ago

Works for me, too! Thank you, great work!

Any idea when you can release 2.0?

And is there a funding possibility? Would like to toss a few coins in there.

fabianmichael commented 3 years ago

@itst

Works for me, too! Thank you, great work!

Nice to hear that! :-)

Any idea when you can release 2.0?

My plan was to wait for a stable CodeMirror 6 release … but that could take a while. I’ve been using the editor without any problems for several weeks now. If I don't encounter any more issues in the following weeks, I might release it earlier.

And is there a funding possibility? Would like to toss a few coins in there.

Thanks for your offering. Currently, I don’t have anything set up for receiving donations … but maybe you want to support @marijnh instead. He is the creator of CodeMirror and (indirectly) did most of the work, to make this plugin possible. ;-) https://marijnhaverbeke.nl/fund/