The public Plate renderer loads a 1.45 MB chunk shared with the editor
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- frontend, performance
Research direction
Run ANALYZE=true pnpm build in apps/aurora and inspect build/stats/stats-client.html, focusing on the somersault-renderer preset and BlockBaseEditorKit. Trace which base kit or shared module brings in Slate/Plate core and micromark/mdast, then identify the renderer’s required dependencies. Done means the renderer loads only what it needs to render, without the editor-only dependencies in its shared chunk.
Written by the indexing model from the issue text.
Description
Found while exploring #300.
In the client build (apps/aurora/build/client/assets, main at e51575e3f), the public SomersaultRenderer-*.js chunk is small (12 kB) and lazy, but it statically imports a 1.45 MB shared chunk (dist-*.js) that the editor's ContentForm-*.js chunk also imports. That shared chunk contains Slate/Plate core and also micromark/mdast, which look like editor-only dependencies (Markdown parsing).
So every public page that renders a page document loads that chunk.
To do:
- Run
ANALYZE=true pnpm buildinapps/auroraand look atbuild/stats/stats-client.htmlfor what the renderer path (somersault-rendererpreset,BlockBaseEditorKit) pulls in. - Find which base kit or shared module brings in editor-only dependencies, and split them so the renderer only loads what it needs to render.
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 9
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 54
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plone/aurora
-
01 type: bug 41 lvl: easy
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yOpen01 type: bug 99 tag: UX Accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days
-
01 type: bug 99 tag: UX Accessibility
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
Similar issues
-
accessibility bug dark-mode dashboards
Difficulty 1/5 Under an hour Newbie friendliness 84/100
quarto-dev/quarto-cli#15447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
521xueweihan/HelloGitHub#4655 ·
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
bug CRIT-3
Difficulty 1/5 Under an hour Newbie friendliness 70/100
NASA-AMMOS/anms#426 ·