-
Notifications
You must be signed in to change notification settings - Fork 157
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: lazy load toast-ui editor dependencies #11060
Conversation
Dynamically load toast-ui editor languages and the syntax highlight plugin for markdown files. This improves editor loading times in other scenarios where one of these 2 things are not needed.
d94a243
to
7b4158a
Compare
Looks a little clumsy but I fear that's the downside of making it performant 😁 |
Totally agree :( Also the weird dist-imports of the lib contribute to that unfortunately. |
Do you think this is something to solve or propose upstream? ;-) |
Could you think of adding a new ts file for the translations where you import the lang files and then just importing that file Async, for now ? |
good idea 👍 |
I didn't dig too deep, but it seems that you can use the non-dist imports, but then you have to explicitly name the supported languages for the syntax highlighting.
Hmm I don't see much benefit tbh. Also it would raise the question where this file would live. We're not in an app context here, this is just a single |
Just decluttering I guess. Could make a new Folder |
666be14
to
c1b9ead
Compare
Quality Gate passedIssues Measures |
Description
Dynamically load toast-ui editor languages and the syntax highlight plugin for markdown files. This improves editor loading times in other scenarios where of one these 2 things are not needed.
Related Issue
Types of changes