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

use SVG2 hrefs #10918

Merged
merged 2 commits into from
Mar 3, 2025
Merged

use SVG2 hrefs #10918

merged 2 commits into from
Mar 3, 2025

Conversation

chris48s
Copy link
Member

@chris48s chris48s commented Mar 2, 2025

<a href= and <image href= in SVGs are widley supported in all modern browsers since ~2019.

Switching to using hrefs instead of the old xlink:href syntax allows us to slightly reduce the size of every SVG response we serve.

@chris48s chris48s added core Server, BaseService, GitHub auth, Shared helpers npm-package Badge generation and badge templates labels Mar 2, 2025
Copy link
Contributor

github-actions bot commented Mar 2, 2025

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!
📖

Thanks for contributing to our documentation. We ❤️ our documentarians!

Generated by 🚫 dangerJS against cc30043

jNullj
jNullj previously approved these changes Mar 2, 2025
Copy link
Member

@jNullj jNullj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find, it saves a bit.

@chris48s
Copy link
Member Author

chris48s commented Mar 3, 2025

Thanks. I've just pushed another commit quickly adding a note to the badge-maker changelog for next time we do a release

@chris48s chris48s merged commit 8a98824 into badges:master Mar 3, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth, Shared helpers npm-package Badge generation and badge templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants