Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Investigate lazy-loading markdown.ts #26841

Open
@valerybugakov

Description

@valerybugakov

htmlparser2, postcss, marked are required for the synchronous renderMarkdown function. To make it lazy-loadable a considerable time investment is required. The benefits would be noticeable: ~55kb gzip.
https://github.com/sourcegraph/sourcegraph/blob/6805b81059190e86edcb8a257ca8bec834e81f1c/client/shared/src/util/markdown.ts#L55

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI performanceImprovements to the actual page rendering performance as well as perceived performance.frontend-platformIssues related to our frontend platform, owned collectively by our frontend crew.sourcegraph-refinement-bot

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions