Skip to content

Commit

Permalink
fix preload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Sep 21, 2023
1 parent e49e89a commit 97f2e18
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 102 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/controllers/slidecontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ export default class SlideContent {
*/
shouldPreload( element ) {

if( this.Reveal.isReaderMode() ) {
return true;
}

// Prefer an explicit global preload setting
let preload = this.Reveal.getConfig().preloadIframes || this.Reveal.isReaderMode();
let preload = this.Reveal.getConfig().preloadIframes;

// If no global setting is available, fall back on the element's
// own preload setting
Expand Down
Loading

0 comments on commit 97f2e18

Please sign in to comment.