1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-06 14:47:04 +02:00

fix preload bug

This commit is contained in:
Hakim El Hattab
2023-09-21 14:15:46 +02:00
parent e49e89a557
commit 97f2e184c1
6 changed files with 139 additions and 102 deletions

View File

@@ -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