Skip to content

Conversation

@enjeck
Copy link
Contributor

@enjeck enjeck commented Dec 9, 2025

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

@enjeck enjeck requested a review from juliusknorr December 9, 2025 07:07
@enjeck enjeck self-assigned this Dec 9, 2025
@enjeck enjeck requested a review from blizzz as a code owner December 9, 2025 07:07
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');
Copy link
Contributor Author

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) {
Copy link
Member

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

Copy link
Member

@juliusknorr juliusknorr left a 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

@juliusknorr
Copy link
Member

Ci also needs some work to pass ;)

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.

Inline rich text rendering has performance issues

3 participants