-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11060 from owncloud/feat/lazy-load-toast-editor-p…
…arts perf: lazy load toast-ui editor dependencies
- Loading branch information
Showing
6 changed files
with
80 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Enhancement: Decrease text editor loading times | ||
|
||
We've decreased the loading times of the text and markdown editor by loading the necessary parts only. | ||
|
||
https://github.com/owncloud/web/pull/11060 | ||
https://github.com/owncloud/web/issues/10982 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { defineAsyncComponent } from 'vue' | ||
|
||
// async component to avoid loading the huge toastjs package on page load | ||
export const TextEditor = defineAsyncComponent( | ||
async () => (await import('./TextEditor.vue')).default | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import('@toast-ui/editor/dist/i18n/ar') | ||
import('@toast-ui/editor/dist/i18n/cs-cz') | ||
import('@toast-ui/editor/dist/i18n/de-de') | ||
import('@toast-ui/editor/dist/i18n/en-us') | ||
import('@toast-ui/editor/dist/i18n/es-es') | ||
import('@toast-ui/editor/dist/i18n/fi-fi') | ||
import('@toast-ui/editor/dist/i18n/fr-fr') | ||
import('@toast-ui/editor/dist/i18n/gl-es') | ||
import('@toast-ui/editor/dist/i18n/hr-hr') | ||
import('@toast-ui/editor/dist/i18n/it-it') | ||
import('@toast-ui/editor/dist/i18n/ja-jp') | ||
import('@toast-ui/editor/dist/i18n/ko-kr') | ||
import('@toast-ui/editor/dist/i18n/nb-no') | ||
import('@toast-ui/editor/dist/i18n/nl-nl') | ||
import('@toast-ui/editor/dist/i18n/pl-pl') | ||
import('@toast-ui/editor/dist/i18n/ru-ru') | ||
import('@toast-ui/editor/dist/i18n/sv-se') | ||
import('@toast-ui/editor/dist/i18n/tr-tr') | ||
import('@toast-ui/editor/dist/i18n/uk-ua') | ||
import('@toast-ui/editor/dist/i18n/zh-cn') | ||
import('@toast-ui/editor/dist/i18n/zh-tw') | ||
|
||
export default {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters