This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Investigate lazy-loading markdown.ts
#26841
Open
Description
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