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

CSS file loading fail in China #1870

Closed
sydowma opened this issue Dec 12, 2021 · 4 comments
Closed

CSS file loading fail in China #1870

sydowma opened this issue Dec 12, 2021 · 4 comments
Labels
enhancement MobSF enhancements and feature requests

Comments

@sydowma
Copy link
Member

sydowma commented Dec 12, 2021

the page loading time is more than 15 seconds.
Because live-in China users do not access fonts.googleapi.com site.
Could we put the font file in the code repository or use CDN?

image

      <!-- Google Font: Source Sans Pro -->
      <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
@github-actions
Copy link

👋 @magaofei
Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@sydowma sydowma changed the title CSS file loading was slow in China CSS file loading fail in China Dec 12, 2021
@glitchdawg
Copy link

If we can retrieve the user's location, we can replace Google Fonts with a CDN service that mirrors Fonts and Libraries from Google API, to serve visitors from China. UnfortunatelyI could not find any such service, One service that did work called useso libraries has stopped providing this service since August 31, 2016. If we find an equivalent service then we can mitigate this issue

@ajinabraham
Copy link
Member

ajinabraham commented Jan 23, 2022

This can be fixed by self hosting fonts.

For example for https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700 needs around 10+ font files to be saved locally.

Unfortunately, we use a couple of google fonts and the no of files requires increases. It is a tedious work, and I am not prioritizing this. If anyone is interested, they can help in collecting all font files and then doing a PR.

@ajinabraham ajinabraham added the enhancement MobSF enhancements and feature requests label Jan 23, 2022
@ajinabraham
Copy link
Member

Tracked separately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement MobSF enhancements and feature requests
Projects
None yet
Development

No branches or pull requests

3 participants