-
Notifications
You must be signed in to change notification settings - Fork 33
feat: lazy initialization for editor setup #2212
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
base: main
Are you sure you want to change the base?
Conversation
| Util::addStyle(Application::APP_ID, 'grid'); | ||
| Util::addStyle(Application::APP_ID, 'modal'); | ||
| Util::addStyle(Application::APP_ID, 'tiptap'); | ||
| Util::addStyle(Application::APP_ID, 'tables-style'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to this feature, just removing since not needed
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
| if (this.initialized) return | ||
| // Prefer initializing when the editor wrapper enters the viewport | ||
| if ('IntersectionObserver' in window) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fine to assume that intersection observer is widely available https://caniuse.com/intersectionobserver
juliusknorr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally fine, but i think we can simplify it and drop the fallback case
|
Ci also needs some work to pass ;) |
fixes #2174
When there are many rich text cells, the page lags and while each editor is being loaded. This improves performance by only loading the cell when it's scrolled into the user's view