Change Google Font CDN URL to Speed Up Semantic UI Page Loading

Semantic UI is a great web UI framework that ease UI related works.

The default font used in Semantic UI is google font and it is loaded from Google’s CDN, which had been blocked in China for a long time. This can cause a very long-time of first page loading.

To fix this, one can follow Semantic UI customization guide and make change there. An know issue has been submitted on Github site of Semantic UI.

For those who don’t want to customize it, there is a simple solution: change the semantic.sss in dist folder, change the first line from

@import ‘https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin’;

to

@import ‘http://fonts.useso.com/css?family=Lato:400,700,400italic,700italic&subset=latin’;

 

The fonts.useso.com is a China local CDN which replicated from the Google one, makes access from China faster.

Leave a Reply

Your email address will not be published. Required fields are marked *