CodeblockCustomizer icon indicating copy to clipboard operation
CodeblockCustomizer copied to clipboard

Typing Lag

Open Porco24 opened this issue 1 year ago • 11 comments

When I enable the plugin, I occasionally experience input lag when typing, especially when inputting Chinese. However, the issue disappears after I disable the plugin.

In the video, I tested the problem as it occurred. I disabled all plugins except for CodeblockCustomizer, and the input lag persisted. The lag was alleviated after I disabled CodeblockCustomizer.

https://imgur.com/a/AM5NJfT

Porco24 avatar Nov 24 '24 12:11 Porco24

I see now. So, it also occurs when typing outside of a code block. Is this a large document? Does it contain any code blocks?

mugiwara85 avatar Nov 24 '24 12:11 mugiwara85

@mugiwara85 This is a relatively large file, approximately 5500 characters in length. It was created using Templater and Periodic Notes as a weekly journal. The content mainly consists of document attribute, file references, headings, and regular text input, without any code blocks.

Porco24 avatar Nov 24 '24 12:11 Porco24

Does this behavior also occur on smaller documents?

mugiwara85 avatar Nov 24 '24 13:11 mugiwara85

So far, the issue hasn't occurred yet. It typically happens with large files and is sporadic in nature.

Porco24 avatar Nov 24 '24 13:11 Porco24

This issue is probably related to how I parse the syntax tree, and the explorer issue is probably just CSS. I just need to find which one.

mugiwara85 avatar Nov 24 '24 13:11 mugiwara85

Here, I am having the same typing lag issue.

bunsyy avatar Dec 23 '24 03:12 bunsyy

Yes, I'm also experiencing severe lagging when typing on a page with a lot of Wikilinks

felixsdys avatar Jan 18 '25 09:01 felixsdys

@Porco24 @bunsyy @felixsdys Sorry for the late reply. Do you all have this lag problem when Enable Links usage is enabled? Or is it not depending on this option?

mugiwara85 avatar Jan 20 '25 18:01 mugiwara85

@Porco24 @bunsyy @felixsdys Sorry for the late reply. Do you all have this lag problem when Enable Links usage is enabled? Or is it not depending on this option?

You mean "Enable editor active line highlight"? I close this plugin sometime, and I update obsidna to v1.8.4, I can't reproduce the error

Porco24 avatar Feb 06 '25 08:02 Porco24

@Porco24 No, I meant Enable Links usage. @felixsdys said he experienced a lagging issue when typing in a document which contained a lot of Wikilinks. So, if I understand it correctly, with Obsidian v1.8.4 you don't experience the problem anymore?

I will make a change on how the links are processed this week. Hopefully, that will help as well.

mugiwara85 avatar Feb 06 '25 12:02 mugiwara85

@Porco24 @bunsyy @felixsdys Could you please download the main.js and styles.css from the repo, and overwrite yours with it, and test if the problem still persists? Please give me a feedback, if it is ok now. Thanks!

mugiwara85 avatar Apr 20 '25 01:04 mugiwara85

Fixed in version 1.3.0

mugiwara85 avatar Aug 15 '25 00:08 mugiwara85