mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 13:48:58 +02:00
perf: load document libraries only when needed
This commit is contained in:
@@ -122,3 +122,12 @@ Run `npm run build:ui` after changing a template or frontend script. Use
|
||||
configured upstream. `npm run test:ui` rebuilds the assets and runs the frontend
|
||||
regression and DOM interaction tests. `npm run build` also builds the UI for
|
||||
production.
|
||||
|
||||
The initial bundle contains the Vue app. Markdown extensions load on content
|
||||
routes; PDF.js, Ace, and notebook support load when their viewers mount.
|
||||
Org support loads in the repository explorer, and Mermaid loads only when a
|
||||
diagram is encountered. These libraries use hashed URLs and load once per tab.
|
||||
|
||||
The Docker build compiles the same bundles and copies them, the asset manifest,
|
||||
and document-worker assets into the runtime image. The Compose app serves these
|
||||
assets directly; no frontend development server is needed.
|
||||
|
||||
Reference in New Issue
Block a user