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

Minify #85

Closed
wants to merge 3 commits into from
Closed

Minify #85

wants to merge 3 commits into from

Conversation

RealOrangeOne
Copy link
Member

PR based on #84, so it was actually possible to install things, I'd suggest not reviewing until that's merged.

Use https://github.com/byrnereese/mkdocs-minify-plugin to minify the site. This only minifies the HTML content, rather than any ancillary scripts.

Also remove dependency on `pymdown-extensions`, so it's handled by the underlying package which requires it (the theme)
Probably because the version pin changed the hash content
@PeterJCLaw
Copy link
Member

Interesting idea. Given that we're serving this via nginx with compression (gzip etc.) enabled, does this save us much?
There's maybe a small saving between GitHub Pages and the nginx box, though since the latter is caching anyway that's a fairly minor concern.

The trade-off here is that the generated HTML/JS source is somewhat less readable both in development and production.

@RealOrangeOne RealOrangeOne marked this pull request as ready for review February 23, 2020 19:22
@RealOrangeOne
Copy link
Member Author

There's still some saving to the end user, but I agree it does make dev slightly more annoying, if you're viewing the raw HTML, that is.

Will leave this open and think on it some more.

@RealOrangeOne
Copy link
Member Author

For the sake of easier debugging, and diminishing returns, I think we can leave this.

@RealOrangeOne RealOrangeOne deleted the minify branch June 30, 2021 20:29
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

Successfully merging this pull request may close these issues.

2 participants