nothingislost / obsidian-codemirror-options

Obsidian plugin with options to customize the behavior of CodeMirror
GNU General Public License v3.0
172 stars 13 forks source link

mathjax rendering does not work properly on slow computers #102

Open Hxppdv opened 2 years ago

Hxppdv commented 2 years ago

What did I do?

I found that after just starting obsidian with many plugins, mathjax rendering shows the following error. I watched the console and there was no message about it, and I made sure it was not a problem with other plugins.

My guess.

I did a lot of testing and this problem really gave me a headache at first, I tried all sorts of possibilities, obsidian itself, plugin problems, device problems, and eventually I was lucky enough to find a little clue. I found that obsidian is more prone to this problem at startup, when the CPU usage is very high. And then I tried to turn down the CPU frequency (simulating a high CPU usage/slow computer), I have observed that errors are more likely to occur, suggesting that the error message may have something to do with performance.