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

style: Remove google fonts (addresses #5025). #5027

Merged
merged 3 commits into from
Apr 29, 2021

Conversation

mgrhm
Copy link

@mgrhm mgrhm commented Apr 5, 2021

No description provided.

@iloveitaly
Copy link

I'm curious why we need to remove these google fonts. Security / load speed?

@mgrhm
Copy link
Author

mgrhm commented Apr 24, 2021

In their original request, @krswin said it's important that their Monica instance doesn't connect to the internet for any types of requests. I'd assume that they're hosting it locally and don't want Monica making HTTP calls outside their local network.

From my perspective, I can't see a good reason why these are included. They don't improve the site's function (they're barely used), they add to load time, and they're making requests to Google's servers. I don't see a benefit to any of those -- and I'd say removing Google from an application I self-host is a plus.

In this pull, I'm removing Google Fonts from an error page. The page works just fine, and will load faster, without that additional overhead.

Self-hosting webfonts is a bit fiddly to set up, but not that difficult really. If it's something that Monica wants/needs, we should add the fonts and code so that they're hosted and served locally. As it stands, though, Monica's font-stack is pretty thorough and doesn't rely on non-system fonts.

@iloveitaly
Copy link

Makes sense! Thanks for explaining. Definitely in favor of this!

Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

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

Good work, thank you @mgrhm

resources/views/errors/layout.blade.php Show resolved Hide resolved
resources/views/errors/layout.blade.php Outdated Show resolved Hide resolved
Co-authored-by: Alexis Saettler <alexis@saettler.org>
@asbiin asbiin merged commit c0000fe into monicahq:master Apr 29, 2021
@asbiin
Copy link
Member

asbiin commented Apr 29, 2021

Thank you @mgrhm

@github-actions
Copy link

🎉 This PR is included in version 2.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented May 1, 2022

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2022
@mgrhm mgrhm deleted the remove-google-fonts branch May 1, 2022 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants