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

Possible unused lightbox dependency footprint included in readthedown when lightbox = false #128

Closed
sciatro opened this issue Feb 27, 2022 · 2 comments

Comments

@sciatro
Copy link
Contributor

sciatro commented Feb 27, 2022

When using rmdformats::readthedown with:

    lightbox: false
    thumbnails: false

I see the the js / css for magnific-popup in the <head> of my final knitted html, e.g. with self_contained: false:

        <link href="libs/magnific-popup-1.1.0/magnific-popup.css" rel="stylesheet" />
        <script src="libs/magnific-popup-1.1.0/jquery.magnific-popup.min.js"></script>

After a little bit of time poking around in the final knitted page with browser dev tools I am not seeing obvious examples of either in use. On the other end when I manually remove them the overall effect of the final page appears preserved.

My front end knowledge is minimal at best so all of this is wholly theory-free poking around but, is it possible that these dependencies are included on accident even when lightbox is false?

@juba
Copy link
Owner

juba commented Feb 27, 2022

Indeed, you're right, the magnific popup dependency was added systematically. This should now be fixed in the development version, magnific popup should not be included anymore if lightbox: false.

Thanks !

@sciatro
Copy link
Contributor Author

sciatro commented Feb 27, 2022

Thank you for looking into it and all of the hard work on this package.

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

2 participants