Skip to content

Add lazy loading when displaying code blocks. #887

@small-lovely-cat

Description

@small-lovely-cat

The current parsedown engine deals with the whole code block, processing it at once when the page loads. However, if the code blocks contains a large amount of lines, the page will freeze with "no response alert" by the browser.

Hope that a lazy loading machanism will be added, which deals with the current visible part (or a bit above or under) only, while load other parts when scrolled to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions