hedgedoc/public
David Mehren 5b8b76135b
Lazy-load viz.js
This commit moves the import of viz.js into a `require.ensure` block,
that is only executed when a graphviz diagram is actually present
in a note. Webpack automatically splits the library into a separate
chunk and loads that on demand.

To ensure that graphviz code-blocks are not treated as normal
code-blocks while the chunk is loading, a corresponding check is added
to `finishView`.

The library is also removed from the Webpack config file, as it only
is used at one place in extra.js, which is handled by Webpack
without any extra config.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-06-11 09:29:26 +02:00
..
banner Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
css Improved CSS in night-mode 2021-01-28 12:30:47 +01:00
docs Add release notes for CSP changes 2021-06-07 22:57:12 +02:00
fonts
icons apply review suggestions 2020-11-15 20:12:39 +01:00
js Lazy-load viz.js 2021-06-11 09:29:26 +02:00
uploads
vendor Load abcjs from npm package 2021-06-07 20:59:37 +02:00
views Replace handlebars with string.replace 2021-06-11 09:29:26 +02:00
.eslintrc.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
default.md
screenshot.png Updated screenshot 2020-11-17 11:13:58 +01:00