Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Lazy Loading with data-src for <embed> element ? #3111

Open
cderv opened this issue Jan 13, 2022 · 0 comments
Open

Support Lazy Loading with data-src for <embed> element ? #3111

cderv opened this issue Jan 13, 2022 · 0 comments

Comments

@cderv
Copy link

cderv commented Jan 13, 2022

Hi,

I noticed digging through some issues (jgm/pandoc#7830) that setting <embed data-src=> does not work in revealjs. Currently Pandoc sets this attributes and the resulting presentation does not load the embed file.

It seems like it is not among the supported element

// Media elements with data-src attributes
queryAll( slide, 'img[data-src], video[data-src], audio[data-src], iframe[data-src]' ).forEach( element => {
if( element.tagName !== 'IFRAME' || this.shouldPreload( element ) ) {
element.setAttribute( 'src', element.getAttribute( 'data-src' ) );
element.setAttribute( 'data-lazy-loaded', '' );
element.removeAttribute( 'data-src' );
}
} );

Does it make sense to add support in there for lazy loading also using HTML5 <embed> ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant