-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add lazy loading and async decoding to images #177
Comments
I'm starting to work on this issue |
Awesome |
Some nuance here - only images that are non-critical to the Docs interface should be lazily loaded. Example - tutorial screenshots about clicking a button in the admin interface - this can be lazy. I am not sure how we will do this yet, my guess is it will be something at the myst-parser or sphinx config level. Maybe google 'Sphinx default image attributes lazy load' or 'myst-parser default image attributes' or something like that. |
@lb- Thanks for the context, I'm trying to figure this out. |
Some research, a lot of this is new to me also
Note: This may end up being one of those things that we have to solve in the theme here and also on the Wagtail usage of the theme if it's a config thing. Anyway - those links could be a dead end but hopefully that helps. |
Overview
img
tag featuresloading='lazy'
anddecoding='async'
.Details
The text was updated successfully, but these errors were encountered: