Trikzon / obsidian-frontmatter-links

An Obsidian plugin that renders links in a note's frontmatter as links.
MIT License
64 stars 8 forks source link

Plugin is causing huge delay in obsidian startup #25

Open vinispira opened 1 year ago

vinispira commented 1 year ago

I discovered that this plugin is the only responsible for a huge delay in the startup of Obsidian in my computer. I deleted the plugin and the startup went back to normal again. Hoping for an update to fix the issue, this is a very important plugin for me! thanks

tim-hilde commented 1 year ago

Here is the corresponding thread in the forum: https://forum.obsidian.md/t/stuck-on-loading-cache/42253/48

beingskyler commented 1 year ago

Confirmed issue for me as well. After disabling this plugin and refreshing Obsidian, my startup time returned to normal.

czottmann commented 1 year ago

The delay is caused by the call to app.metadataCache.initialize() in https://github.com/Trikzon/obsidian-frontmatter-links/blob/786b0c6a1333bced05def193c3f951c5ecfd9338/src/main.ts#L16-L18

I'm not sure why it needs to be initialized explicitly, it was my understanding that Obsidian does that on its own, I'm just saying commenting out this one call makes the delay disappear. No idea about side effects, though.

elzik commented 1 year ago

I think this might be the same issue as #18