-
Notifications
You must be signed in to change notification settings - Fork 228
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
Feature request : Add support for lazy loading images #637
Comments
This issue seems easy to implement but the HTML renderer is built as a simple use case of handling parsing events and adding options to it is out of scope, meanwhile setting always the lazy-loading option could be worse for other users. It makes a lot of sense splitting the HTML renderer to another crate, and that crate could read a TOML file with options like this to have a lot of customizations. However, this will not happen in the short term, because there are other more urgent issues. Nevertheless, creating a new crate initially handling the current options and with those extensions in mind would be not hard and it would be a good starting point to strip out the HTML renderer in favour of external renderers, so if anyone makes it, it would be appreciated. |
That totally makes sense and I totally agree. You mentioned that splitting the HTML renderer to another crate is not in the list of most urgent issues. Where can I find the roadmap and be of help? |
#519 pull request will be merged relatively soon and #526 will also be fixed relatively soon but a bit later. However, creating the external crate is not in the roadmap and it is entirely a different project. As commented in #408 (comment), a good starting point to create it can be copying the So you can help creating this project :). If you have any questions don't hesitate in asking help. |
#645 has been created to track all requested features that would fit in a new full-featured HTML renderer crate. |
Cross post from getzola/zola#2055:
To make our pages load faster and minimize the use of bandwidth/memory when a user does not scroll a whole page ; we can use the following attribute to make the image load only when needed (lazy loading):
references :
Is this something that pulldown-cmark is interested in? This could be configurable and not-lazy by default to be consistent with current state.
The text was updated successfully, but these errors were encountered: