gatsby-remark-native-lazy-load
v1.0.0
Published
Adds loading="lazy" to your markdown images
Downloads
4
Maintainers
Readme
gatsby-remark-native-lazy-load
Adds native lazy loading to your markdown images.
Input
![Foo](https://i.imgur.com/dc1PU8j.jpg)
Output
<img src="https://i.imgur.com/dc1PU8j.jpg" alt="Foo" loading="lazy">
Install
yarn add gatsby-remark-native-lazy-load
npm i gatsby-remark-native-lazy-load --save
Usage
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-native-lazy-load`,
],
},
}