Load the print and worksheet code only when printing
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- build-system, frontend, performance
Direzione di ricerca
Start in public/app/yjs/yjs-loader.js to see how group 3 pulls in exporters.bundle.js, then find where the print and worksheet modules are imported (the change from #2539). The work is to split those modules into a separate bundle that loads on first print-preview open, while the shared export code still runs under Node for the server and CLI. Done when editor start no longer loads parse5, css-tree or the worksheet code, every print path passes its unit and E2E tests (static mode included), and the start bundle is near its pre-#2539 size.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
#2539 put the print and worksheet code in exporters.bundle.js, which the editor loads at every
start (public/app/yjs/yjs-loader.js, group 3). The bundle grew from about 320 KB to 681 KB
(+112 % in the Codecov bundle report), although few sessions print.
| Part | Minified size |
|---|---|
| parse5 | 166 KB |
| css-tree | 65 KB |
| Worksheet adapters and renderer | about 115 KB |
Proposal
Move the print and worksheet modules to a separate bundle, loaded the first time the print
preview opens. exporters.bundle.js keeps what the editor needs at start.
Constraints:
- The shared export code also runs on the server and in the CLI, so parse5 cannot simply be
replaced byDOMParser. A browser-only parser would have to be injected. - Static mode and the desktop app must load the new bundle the same way.
- The print preview, Print iDevices and the document's appendix must behave as they do now.
Done when
- Starting the editor no longer loads parse5, css-tree or the worksheet code.
- Opening the print preview loads them once, and every print path works as before (unit and
E2E tests, static included). - The bundle loaded at editor start is back near its size before #2539.
Raised by @erseco in the review of #2539.
- Lingua principale
- JavaScript
- Stelle
- 145
- Fork
- 33
- Merge medio
- 3g 14h
- PR unite (30g)
- 93
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di exelearning/exelearning
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
exelearning/exelearning#2677 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
exelearning/exelearning#2497 ·
I maintainer di solito rispondono entro 1 giorno
-
Mermaid: long node labels are cut off in Chrome and Edge at some zoom levels, and the cut is saved in previews and exportsForse già presa @erseco l’ha presa 12 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
exelearning/exelearning#2490 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
exelearning/exelearning#2455 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
non-english
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
exelearning/exelearning#2448 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di exelearning/exelearning
Issue simili
-
ai-driven-fuzzing bug claude Minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
linagora/cozy-client#1777 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[guide] AGENTS.md claims the coverage gate, e2e and full lint run on every PR after ADR 0011 focused validationForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/guide documentation hive/claimed-by-guide stage/040-covered-by-pr
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
cncf/endusers#2006 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
check:passed feeds:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 4 giorni
-
CMS video element: "CmsVideoPlugin" sets `volume = 0`, so videos cannot be unmuted on Android ChromeApertaneeds-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
all-contributors/cli#587 ·
I maintainer di solito rispondono entro 1 giorno