diff options
author | Hakim El Hattab | 2014-04-23 15:36:22 +0200 |
---|---|---|
committer | Hakim El Hattab | 2014-04-23 15:36:22 +0200 |
commit | 54ca9edeed077c4f7e564d0fa26c086af28a02ee (patch) | |
tree | 12218b8f285f62bb61668249f2575dbfb14a3cf8 /js | |
parent | 53238c47ce85b2746d8d3375dc909aff892de3e7 (diff) |
lazy load support for iframes #793
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 1238f9f..7a032d0 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2178,7 +2178,7 @@ var Reveal = (function(){ function loadSlide( slide ) { // Media elements with data-src attributes - toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src]' ) ).forEach( function( element ) { + toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src], iframe[data-src]' ) ).forEach( function( element ) { element.setAttribute( 'src', element.getAttribute( 'data-src' ) ); element.removeAttribute( 'data-src' ); } ); |