minidocs icon indicating copy to clipboard operation
minidocs copied to clipboard

Big Bundle Size from highlight.js

Open joehand opened this issue 8 years ago • 3 comments

The bundle size right now is 1.4MB, 581 KB gzipped, for a fairly simple docs site (docs.dat-data.com). It looks like most of that is because all of the 175 (very obscure) highlight.js languages are included in the bundle.

Can we remove the non-common language highlights from the bundle?

Or if not, can we add an option to output a static site without the bundle? For a small static docs site, it doesn't seem like client side routing is worth such a large initial download. I'd rather just have static html.

joehand avatar Jul 06 '16 17:07 joehand