Skip to content
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

Support Reveal's Lazy Loading #443

Open
thewellington opened this issue Feb 2, 2023 · 1 comment
Open

Support Reveal's Lazy Loading #443

thewellington opened this issue Feb 2, 2023 · 1 comment

Comments

@thewellington
Copy link

I would like to see support for Lazy Loading of all the objects that reveal.js can lazily load. Currently this requires changing the src attribute of the media object you are looking for to data-src to prevent the browser from loading the media immediately upon page load. For example:

<img src="my image.jpg" /> would be changed to <img data-src="my image.jpg" />

Then as the presentation approaches the slide in question the media is loaded and ready for display when the slide is displayed.

Currently reveal-md cannot do this (at least not as far as I can find documented) presumably because the markdown processor looks at [My Image](my image.jpg) and makes <img src="my image.jpg" />

What can be done to change this behavior and give us lazy loading?

@webpro
Copy link
Owner

webpro commented Mar 9, 2023

If anyone's up to look into it and submit a PR, I'm happy to look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants