aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-23 15:36:22 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-23 15:36:22 +0200
commit54ca9edeed077c4f7e564d0fa26c086af28a02ee (patch)
tree12218b8f285f62bb61668249f2575dbfb14a3cf8 /README.md
parent53238c47ce85b2746d8d3375dc909aff892de3e7 (diff)
downloadfreenode-live-2017-presentation-54ca9edeed077c4f7e564d0fa26c086af28a02ee.tar
freenode-live-2017-presentation-54ca9edeed077c4f7e564d0fa26c086af28a02ee.tar.gz
lazy load support for iframes #793
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 47511cc..823bd93 100644
--- a/README.md
+++ b/README.md
@@ -295,13 +295,14 @@ Reveal.configure({
### Lazy Loading
-When working on presentation with a lot of image, video and audio content it's important to load lazily. Lazy loading means that reveal.js will only load the media for the few slides nearest to the current slide. The number of slides that are preloaded is determined by the `viewDistance` configuration option.
+When working on presentation with a lot of media or iframe content it's important to load lazily. Lazy loading means that reveal.js will only load content for the few slides nearest to the current slide. The number of slides that are preloaded is determined by the `viewDistance` configuration option.
-To enable lazy loading all you need to do is change your "src" attributes to "data-src" as shown below. This is supported for image, video and audio elements.
+To enable lazy loading all you need to do is change your "src" attributes to "data-src" as shown below. This is supported for image, video, audio and iframe elements.
```html
<section>
<img data-src="image.png">
+ <iframe data-src="http://slides.com">
<video>
<source data-src="video.webm" type="video/webm" />
<source data-src="video.mp4" type="video/mp4" />