How to disable the lazy loading from images in md files ?
See original GitHub issueI’m looking for a way to cancel the lazy loading feature from the images, something to convert this

in md files into this
<g-image src="./image.png" immediate='true' />
can anyone help?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
graphql - scaling and lazy loading images in markdown html
I'm trying to get the images to scale up and lazy load like you can do using the Gatsby Image API . The...
Read more >[Gatsby] How to lazyload images in markdown | by Kohei Arai
I took inspiration from [gatsby-images] [gatsby-remark-images] ... If everything is working fine, this should enable lazyloading of images!
Read more >Lazy Loading your images in Jekyll blog Improving page speed
1. Introduction to the problem: Defer off-screen images · 2. Using Lazysizes · 3. Get the Lazysizes min file. · 4. Giving a...
Read more >Media | reveal.js
To enable lazy loading all you need to do is change your src attributes to data-src as shown below. This is supported for...
Read more >Lazy loading images - web.dev
To polyfill lazy loading of <img> elements, we use JavaScript to check if they're in the viewport. If they are, their src (and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would this need to be done per image? Or could it just me a setting defined once in the gridsome/plugin config?
@mbeayou it seems that currently, this is not possible.
Images in Markdown are transformed on gridsome/transformer-remark/lib/plugins/image.js. An image in MD files is limited. You can only specify the path and the alt/title. The main problem I see is you can not specify custom properties for images on markdown language.
If you could do this (totally hipotetic):
We could modify image.js to take this parameter and pass it along with the transformation. Or we could have a parameter to make all images immediate, but I don’t see why you would do that.
This seems to me as a Markdown limitation.