Google Fonts Causes Timeout in China #1305

Closed
playgithub opened this Issue Nov 28, 2014 · 16 comments

Comments

Projects
None yet
8 participants
@playgithub

The same problem as in #1296 with [1.0.0]
BTW, I used the file in "dist" folder directly, without compiling.
In IE11, when offline, it is slow, but the font is always nice than in google chrome in which the font is always not nice.

@Steveb-p

This comment has been minimized.

Show comment
Hide comment
@Steveb-p

Steveb-p Nov 28, 2014

I believe that #1299 is not related with #1296, as those are entirely different bugs.
#1299 occurs during build, while #1296 happens when the css files are already built, but external service - namely google - is unavailable on site load.
I have tested it with disabled connection launching a localhost page, and normally browser is aware that internet connection is missing and drops the attempt immediately (Chrome, Windows).
I believe that the best solution to this bug is to provide the ability to specify different service to supply fonts and/or local. This way one could download the css file google supplies under that url and related fonts - and use them from local machine without net access (also allowing development in such environments).
Also playgithub, you might disable @importGoogleFonts before build (set true in themes/default/globals/site.variables, so override in site/globals/site.variables) and adding fonts from local.

I believe that #1299 is not related with #1296, as those are entirely different bugs.
#1299 occurs during build, while #1296 happens when the css files are already built, but external service - namely google - is unavailable on site load.
I have tested it with disabled connection launching a localhost page, and normally browser is aware that internet connection is missing and drops the attempt immediately (Chrome, Windows).
I believe that the best solution to this bug is to provide the ability to specify different service to supply fonts and/or local. This way one could download the css file google supplies under that url and related fonts - and use them from local machine without net access (also allowing development in such environments).
Also playgithub, you might disable @importGoogleFonts before build (set true in themes/default/globals/site.variables, so override in site/globals/site.variables) and adding fonts from local.

@jlukic

This comment has been minimized.

Show comment
Hide comment
@jlukic

jlukic Nov 28, 2014

Member

Does this still occur when you set @importGoogleFonts: false? Are you developing on a machine without internet connection?

Member

jlukic commented Nov 28, 2014

Does this still occur when you set @importGoogleFonts: false? Are you developing on a machine without internet connection?

@playgithub

This comment has been minimized.

Show comment
Hide comment
@playgithub

playgithub Nov 29, 2014

Not set @importGoogleFonts: false yet, I have to learn how to build first.
Cause in my country, google is forbiddened.

Not set @importGoogleFonts: false yet, I have to learn how to build first.
Cause in my country, google is forbiddened.

@jlukic

This comment has been minimized.

Show comment
Hide comment
@jlukic

jlukic Nov 29, 2014

Member

Ah yes 防火长城 that makes complete sense then

Member

jlukic commented Nov 29, 2014

Ah yes 防火长城 that makes complete sense then

@playgithub

This comment has been minimized.

Show comment
Hide comment
@playgithub

playgithub Nov 29, 2014

Yes, and you know chinese, please help about this. I still need the good font.

Yes, and you know chinese, please help about this. I still need the good font.

@jlukic

This comment has been minimized.

Show comment
Hide comment
@jlukic

jlukic Nov 29, 2014

Member

I've done some travelling through China, but it has been many years since i studied 简化字...

The Chinese firewall causes connections to Google Fonts to timeout.

Try @importGoogleFonts: false and then import fonts from Youziku Font Select which works well in China.
They also have english fonts

Member

jlukic commented Nov 29, 2014

I've done some travelling through China, but it has been many years since i studied 简化字...

The Chinese firewall causes connections to Google Fonts to timeout.

Try @importGoogleFonts: false and then import fonts from Youziku Font Select which works well in China.
They also have english fonts

@jlukic jlukic added Discussion and removed Cannot Reproduce labels Nov 29, 2014

@jlukic jlukic changed the title from [1.0.1] slow when develop offline to Google Fonts Causes Timeout in China Nov 29, 2014

@playgithub

This comment has been minimized.

Show comment
Hide comment
@playgithub

playgithub Dec 1, 2014

OK, the site can be opened now, but very slow, more than 1 minute.


Tried open http://www.youziku.com/, which redirect to http://www.youziku.com/Home/FontSelect, but it can't be opened.
BTW, where can I set @importGoogleFonts: false?

OK, the site can be opened now, but very slow, more than 1 minute.


Tried open http://www.youziku.com/, which redirect to http://www.youziku.com/Home/FontSelect, but it can't be opened.
BTW, where can I set @importGoogleFonts: false?

@Steveb-p

This comment has been minimized.

Show comment
Hide comment
@Steveb-p

Steveb-p Dec 1, 2014

If you're using default gulp build paths, then you should override the value set in Semantic UI themes by placing @importGogleFonts: false; in src/globals/site.variables. This file should be almost empty. If you wish to see all the options that can be overriden there, check themes/default/globals/site.variables (or some other, non-default theme if you've changed it in theme.config)

Steveb-p commented Dec 1, 2014

If you're using default gulp build paths, then you should override the value set in Semantic UI themes by placing @importGogleFonts: false; in src/globals/site.variables. This file should be almost empty. If you wish to see all the options that can be overriden there, check themes/default/globals/site.variables (or some other, non-default theme if you've changed it in theme.config)

@mutil

This comment has been minimized.

Show comment
Hide comment
@mutil

mutil Dec 11, 2014

Is it so important to have webfonts enabled by default? The are some use cases where only the compiled css is available and this causes problems & redundant requests when developing.

mutil commented Dec 11, 2014

Is it so important to have webfonts enabled by default? The are some use cases where only the compiled css is available and this causes problems & redundant requests when developing.

@atian25

This comment has been minimized.

Show comment
Hide comment
@atian25

atian25 Jan 12, 2015

+1 @mutil

plz support local css/font.

also, @import will be slow

atian25 commented Jan 12, 2015

+1 @mutil

plz support local css/font.

also, @import will be slow

@atian25

This comment has been minimized.

Show comment
Hide comment
@atian25

atian25 Feb 9, 2015

@minzhang it seem from and to is same string.

atian25 commented Feb 9, 2015

@minzhang it seem from and to is same string.

@minzhang

This comment has been minimized.

Show comment
Hide comment

minzhang commented Feb 9, 2015

@atian25 made a mistake doing copy&paste, should be:

modify the semantic.sss in 'dist' folder, change the first line from

@importhttps://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin';

to

@importhttp://fonts.useso.com/css?family=Lato:400,700,400italic,700italic&subset=latin';

@jlukic

This comment has been minimized.

Show comment
Hide comment
@jlukic

jlukic Mar 30, 2015

Member

Closing as this appears to be solved with useso replacement

Member

jlukic commented Mar 30, 2015

Closing as this appears to be solved with useso replacement

@Centaur

This comment has been minimized.

Show comment
Hide comment
@Centaur

Centaur Sep 8, 2015

This is still a critical issue if using semantic-ui from a cdn service.

Centaur commented Sep 8, 2015

This is still a critical issue if using semantic-ui from a cdn service.

@uniquejava

This comment has been minimized.

Show comment
Hide comment
@uniquejava

uniquejava Aug 31, 2017

The site useso.com closed long long time ago, and the solution above (and among other related issues) all not work, please reopen.

The site useso.com closed long long time ago, and the solution above (and among other related issues) all not work, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment