Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: reduce bundle size (closes #1607) #1689

Merged
merged 10 commits into from
Jan 1, 2025
Merged

Conversation

aarnphm
Copy link
Collaborator

@aarnphm aarnphm commented Dec 29, 2024

first step in reducing bundle size. This means we are ablating mermaid from each generated HTML and only include it in postscript.js

Next step: to conditionally add mermaid if vault contains any mermaid graph.

In this case, if a vault doesn't use mermaid graph, we can then not include mermaid at all.

Signed-off-by: Aaron Pham [email protected]

Signed-off-by: Aaron Pham <[email protected]>
@aarnphm aarnphm changed the title perf: reduce bundle size perf: reduce bundle size (closes #1607) Dec 29, 2024
Copy link

cloudflare-workers-and-pages bot commented Dec 29, 2024

Deploying quartz with  Cloudflare Pages  Cloudflare Pages

Latest commit: c770732
Status: ✅  Deploy successful!
Preview URL: https://68c88325.quartz-1h4.pages.dev
Branch Preview URL: https://perf-reduce-mermaid-build-si.quartz-1h4.pages.dev

View logs

@aarnphm aarnphm requested a review from jackyzha0 December 29, 2024 01:43
quartz/plugins/transformers/ofm.ts Show resolved Hide resolved
quartz/components/Body.tsx Outdated Show resolved Hide resolved
@aarnphm aarnphm requested a review from jackyzha0 January 1, 2025 19:14
@aarnphm aarnphm merged commit 2e6a675 into v4 Jan 1, 2025
6 checks passed
@aarnphm aarnphm deleted the perf/reduce-mermaid-build-size branch January 1, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants