Skip to content

Reduce Bundle Size by lazy loading markdown-it

What does this MR do?

This reduces the bundle size of main.js by lazy loading the markdown libraries only in the case that something was copied (as this is the only dependency) from 17.85 MB Parsed (before echarts update) to 14.75 MB.

Before (markdown-it + prosemirror libraries) chrome_2019-02-01_09-13-12

After: chrome_2019-02-05_16-55-03

  • In copy_as_gfm.js is now the nodeToGFM async and loads the bundles first async.
  • Specs needed to be adapted to work with the async loading.

What are the relevant issue numbers?

Closes #56989 (closed)

Does this MR meet the acceptance criteria?

Edited by Tim Zallmann

Merge request reports