reqopeat.blogg.se

Free google chinese fonts
Free google chinese fonts











We will replace the href within the link element with a JavaScript function.

So now that we can retrieve our visitor location, we’re going to replace Google Fonts with Useso libraries, a CDN service that mirrors Fonts and Libraries from Google API, to serve visitors from China.Īt this stage, we still have our font styles pointing to Google API: We then pass should tell us where the visitor is from.

free google chinese fonts

To begin with, we will need to find where our visitor is from and to do so, we will be using this WIPMania API that allows the retrieval of a visitor’s geolocation, including their country name:

free google chinese fonts

Recommended Reading: Optimizing Google Web Font Identifying User Location We will be using an alternative font library that mirrors Google Fonts and libraries, but first, we will need to put in some measures to identify users who hail from China. In this post, we will see how to bypass China’s "digital" Great Wall, so our website can run like it is viewed outside of China. Chances are that your website may appear partially broken in China because the jQuery and web fonts hosted in Google are inaccessible.

free google chinese fonts

The China government closed access to many of Google’s services including Google API in 2014. Unfortunately, that is not the case in China. It is used almost everywhere, and so much so that some users may already have the cache stored in their browser, which makes the libraries load even faster. We are using Google API to serve libraries such as jQuery and Web Fonts because it serves fast through Google’s reliable infrastructures.













Free google chinese fonts