| @@ -249,10 +249,10 @@ | ||
| 249 | 249 | _self.autoPlaying = on; |
| 250 | 250 | }, |
| 251 | 251 | } ); |
| 252 | 252 | |
| 253 | - $( document ).ready( function () { | |
| 254 | - $( '.presentation-wrapper' ).map( function () { | |
| 255 | - new Presentation( this ); | |
| 253 | + addEventListener( 'DOMContentLoaded', () => { | |
| 254 | + document.querySelectorAll( '.presentation-wrapper' ).forEach( el => { | |
| 255 | + new Presentation( el ); | |
| 256 | 256 | } ); |
| 257 | 257 | } ); |
| 258 | 258 | } )( jQuery ); |