Skip to content

Lazy loading blocks with an image on a large page moves the view around #971

Description

@KlfJoat

Search first

  • I searched and no similar issues were found

What Happened?

On a large page with many nested blocks, Logseq appears to lazy load. That may not be really what it is, but it's what it looks like to me, so I'm going to use that term to describe it for now. It's fine that it does this. This occasionally causes the view to jump around, which is probably bc of my slow laptop, but it corrects itself.

But my real problem is that if there's an image in the page when it's doing this lazy loading and view jumping as I'm scrolling UPWARD, it does not correct itself. The view jumping comes to "rest" many screenfulls away from where the view was when the lazy loading happened. And I have to scroll down more. This sometimes causes more lazy loading and jumping, depending on how close the bottom of the page is.

This happened with a nightly last week and again with 06-24 which was what was available for download yesterday AND an hour ago (it's the night of 6-25 now).

Reproduce the Bug

  1. Load the DB & assets file with a large page with an image (see files)
  2. Take nausea medicine
  3. Scroll down the page, a few screenfulls past the Logseq icon image
  4. Scroll back up to put the Logseq icon image in view
  5. Hold on for the ride!

Expected Behavior

View to not move at all during lazy loading as I scroll rapidly (which may not be possible, I admit). But if it's going to move, to go to the correct location after moving.

Screenshots

Here are two views of the same page, one with the image and one without. It shows the difference in how the page moves once it gets to the "Cloud Service Mesh (CSM)" heading (and the image, or lack thereof, right above it).

Without bug: https://drive.google.com/file/d/1RZJHtGZXPGU8rcm6qJFQmE0_Kxmi2Opr/view?usp=sharing
With bug: https://drive.google.com/file/d/1mPI3zEjDLc_qxkwz99-tG99yIJAo22Lu/view?usp=sharing

The video with the bug was created after the video without.

Files

Here's a database export with assets with the problem. It's got weird artifacts of other pages, maybe bc of how I did the initial export a generation before, but the page you want is the one shown in the videos, "GKE at Scale #PCA"

https://drive.google.com/file/d/1jgNujzIo2ESwCbt-swn5PLyhw0GTNBm8/view?usp=sharing

Browser, Desktop or Mobile Platform Information

Ubuntu 26.04
Logseq AppImage 2.0.1-alpha+nightly.20260624 revision 87f9aef-dirty

Additional Context

I have tried this on two different isolated users, using two different downloaded instances of the AppImage (though I think they're the same version despite me downloading them on different days).

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions