forgejo/web_src
silverwind 27e3cddfbe
Move syntax highlighting to web worker (#11017)
This should eliminate page freezes when loading big files/diff.
`highlightBlock` is needed to preserve existing nodes when highlighting
and for that, highlight.js needs access to the DOM API so I added a DOM
implementation to make it work, which adds around 300kB to the output
file size of the lazy-loaded `highlight.js`.

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-04-13 16:02:31 +03:00
..
fomantic Change font to Roboto to support more charsets (#9803) 2020-01-25 23:47:42 +02:00
js Move syntax highlighting to web worker (#11017) 2020-04-13 16:02:31 +03:00
less Prettify Timeline (#10972) 2020-04-11 01:01:41 +03:00