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

Expand lazy creation of editor and JS Views to the proximity of the viewport #2445

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

jonatanklosko
Copy link
Member

Currently we load iframes and editors when they enter the viewport (at least 1px), which may be noticed by the user. This PR expands loading to also happen for elements within proximity of the viewport (arbitrary 2000px), which still has the lazy benefits for large pages, but is more unobtrusive.

Copy link

github-actions bot commented Jan 25, 2024

Uffizzi Preview deployment-45090 was deleted.

@jonatanklosko jonatanklosko merged commit e038ff7 into main Jan 25, 2024
7 checks passed
@jonatanklosko jonatanklosko deleted the jk-lazy-loading branch January 25, 2024 07:41
Copy link
Contributor

@josevalim josevalim left a comment

Choose a reason for hiding this comment

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

Very nice!

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.

2 participants