import { dataAttrPrefix } from './utils' ; const bespokeLoad = ( deck ) => { window . addEventListener ( 'load' , ( ) => { for ( const slide of deck . slides ) { const type = slide . querySelector ( '[data-marp-fitting]' ) ? '' : 'hideable' ; slide . setAttribute ( `${ dataAttrPrefix }load` , type ) ; } } ) ; } ; export default bespokeLoad ;