Skip to content

Obsidian plugin delays app startup by 2,500ms #2601

Description

@liamcain

Describe the bug
Harper plugin takes 2,500ms to load, impacting Obsidian startup time.

Before the app fully loads, it waits for all code within the plugin onload() function to execute. If there is any code in the onload function that can be executed asynchronously, after the app finishes loading, put it in onLayoutReady instead. Here's a guide for optimizing plugin performance: https://docs.obsidian.md/plugins/guides/load-time

To Reproduce
Steps to reproduce the behavior:

  1. Download and enable plugin.
  2. Restart Obsidian

Expected behavior
The app should start up with minimal delay.

Platform
Obsidian

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions