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

refactor: add async loading for better performance #6643

Merged
merged 19 commits into from
Jan 10, 2025

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented Jan 6, 2025

Extract the Markdown parser to an asynchronous implementation, improving content parsing efficiency and enabling dynamic imports for better performance.

Make all routes loaded async

All the files

From globally -- 34.18MB of js
To globally ----- 28.97MB of js

Main file

From index.js at 16.28MB
To index at 6.28MB

Copy link
Member

@tchiotludo tchiotludo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make all markdown async and remove totally the sync version ?
Even better if we could remove markdownIt, we have 2 markdown parser inside the application, we should keep only one

@elevatebart elevatebart merged commit 8d57f8f into develop Jan 10, 2025
2 of 3 checks passed
@elevatebart elevatebart deleted the feat/async-routes branch January 10, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants