Obsidian doesn’t fully render a note’s elements before they move into the visible area (viewport). The result is a flash of unstyled content.
This happens when I:
- Scroll down in a note.
- Navigate back or forward, if this makes Obsidian jump to somewhere in the note. (Content at the top is always rendered fully. Content further down not, and that’s where the unstyled flash appears.)
- Click on a search result, when this makes Obsidian jump to somewhere in the note.
The more content that isn’t a plain-text paragraph, the worse the flash of unstyled content is. (Because Obsidian has more to render.)
Steps to reproduce
- Press F1 and open the ‘Sandbox vault’.
- Open the settings. Change the default editing mode to ‘source mode’ (rather than ‘live preview’).
- Copy the content of the ‘Start here’ note and paste it below itself. This to make the note’s content longer. (The issue is more apparent with longer notes.)
- Navigate to any other note.
- Go back to the ‘Start here’ note. From the top of that note, scroll down.
- In the lower part of the viewport, there are flashes of unstyled content. Elements affected for the ‘Start here’ note are:
- Headings
- Blockquotes
- Links
A video recording of the steps is here: video.
(The video shows shows a milder effect than I experience in real life. I couldn’t get the video to record with a high-enough FPS.)
Expected result
I expect Obsidian to style the note’s elements completely before they move into the visible area.
I understand this delayed rendering is done for performance. But it’s a bit too aggressive. It, ironically, makes Obsidian feel slower and laggy.
It can also cause content jumps right after navigating, when content goes from unstyled to styled.
Actual result
(See description above.)
Environment
Obsidian version: v0.15.2
Installer version: v0.13.31
Operating system: Windows 10 Home 10.0.19044
Login status: logged in
Catalyst license: supporter
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Safe mode: on
Commercial license: yes
Computer: Intel i5-10400 CPU (6 cores, 12 threads) @ 2.9Ghz with 24GB DDR4 (2666Mhz) RAM and a 500GB SSD (2200MB/s read, 2000MB/s write) drive.