Skip to content

Support for loading="lazy" on images in markdown templates? #1714

Answered by pdehaan
1ockwood asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think 11ty does anything special w/ images. You'll probably want to look at a markdown-it plugin for that. Maybe something like https://www.npmjs.com/package/markdown-it-image-lazy-loading and then set your custom markdown-it library using https://www.11ty.dev/docs/languages/markdown/

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@1ockwood
Comment options

@pdehaan
Comment options

pdehaan Mar 27, 2021
Collaborator

@1ockwood
Comment options

@thomasclausen
Comment options

@1ockwood
Comment options

Answer selected by 1ockwood
Comment options

You must be logged in to vote
1 reply
@1ockwood
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants