Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Only execute searches after Obsidian finishes loading #3350

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

claremacrae
Copy link
Collaborator

Types of changes

Changes visible to users:

  • Bug fix (prefix: fix - non-breaking change which fixes an issue)

Description

Only execute searches after Obsidian finishes loading.

Benefits:

  • This may improve start-up time, when Obsidian opens with notes containing Tasks search results loaded, in Reading mode or Live Preview.
  • It fixed use of a "CodeScript Toolkit" startup script inside notes that were already open in Reading mode when Obsidian was starting up.
  • It may improve the experience in any vaults that have custom Tasks instructions that load functions from other JavaScript-running plugins
  • It ticks off one of the checks in the Obsidian October O_O 2024 plugin self-critique checklist

Thanks to @mnaoumov for pointing this out.

Motivation and Context

See above

How has this been tested?

Launching Obsidian with Tasks searches already open, and confirming the results are still rendered correctly.

Checklist

Terms

This may improve start-up time, when Obsidian opens with
notes containing Tasks search results loaded, in Reading mode
or Live Preview.

This fixed use of a "CodeScript Toolkit" startup script inside
notes that were already open in Reading mode when Obsidian was starting up.

Thanks to @mnaoumov for pointing this out.

Co-Authored-By: Michael Naumov <[email protected]>
@claremacrae claremacrae added the scope: performance issues Issues with speed or responsiveness label Feb 23, 2025
@claremacrae claremacrae merged commit cf8cd96 into main Feb 23, 2025
4 checks passed
@claremacrae claremacrae deleted the fix-render-when-layout-ready branch February 23, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: performance issues Issues with speed or responsiveness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant