Sesame Blog

Front end CDNJS library and Google Fonts, Ajax and Gravatar domestic acceleration services

For some well-known reasons, many open source JS libraries use the foreign CDN hosting mode, which is not as fast as expected in China. Therefore, we have specially created this public welfare project, hosting all the open source JS libraries of CDNJS and replacing Google Fonts, Ajax and Gravatar.

1. CDNJS open source JS library

Our method is to synchronize CDNJS regularly every day Github

All JS/CSS libraries can find the links you need here

https://cdnjs.loli.net/ajax/libs/

If you use cdnjs.com Just replace cdnjs.cloudflare.com by cdnjs.loli.net OK, such as

 < script  src = " https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js " > </ script >

replace with

 < script  src = " https://cdnjs.loli.net/ajax/libs/jquery/3.2.1/jquery.min.js " > </ script >

Please contact CDNJS API development documentation here

2、Google Fonts

Our method is universal Nginx inversion+keyword replacement

When using, you only need to replace fonts.googleapis.com by fonts.loli.net OK, such as

 < link  href = " https://fonts.googleapis.com/css?family=Open +Sans"  rel = "stylesheet" >

replace with

 < link  href = ' https://fonts.loli.net/css?family=Open +Sans'  rel = 'stylesheet' >

if necessary Material icons ,把

 < link  href = " https://fonts.googleapis.com/icon?family=Material +Icons"  rel = "stylesheet" >

replace with

 < link  href = " https://fonts.loli.net/icon?family=Material +Icons"  rel = "stylesheet" >

if necessary Early Access ,把

 @import url( https://fonts.googleapis.com/earlyaccess/notosanskannada.css );

replace with

 @import url( https://fonts.loli.net/earlyaccess/notosanskannada.css );

If you need to download a single font, you only need to fonts.gstatic.com replace with gstatic.loli.net or themes.googleusercontent.com replace with themes.loli.net that will do

such as

 https://fonts.gstatic.com/s/opensans/v14/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2

replace with

 https://gstatic.loli.net/s/opensans/v14/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2

perhaps

 https://themes.googleusercontent.com/static/fonts/anonymouspro/v3/Zhfjj_gat3waL4JSju74E-V_5zh5b-_HiooIRUBwn1A.ttf

replace with

 https://themes.loli.net/static/fonts/anonymouspro/v3/Zhfjj_gat3waL4JSju74E-V_5zh5b-_HiooIRUBwn1A.ttf

Google Fonts API documentation here

3. Google front-end public library

Same as above, directly replace ajax.googleapis.com by ajax.loli.net OK, such as

 < script  type = "text/javascript"  src = " https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js " > </ script >

replace with

 < script  type = "text/javascript"  src = " https://ajax.loli.net/ajax/libs/jquery/3.2.1/jquery.min.js " > </ script >

Google front-end library API development document here

4. Gravatar

The method is the same as above. Replace directly *.gravatar.com by gravatar.loli.net OK, such as

 https://secure.gravatar.com/avatar/8406d089bc81b664a2610b8d214c1428

replace with

 https://gravatar.loli.net/avatar/8406d089bc81b664a2610b8d214c1428

5. Sponsor

CDN, GeoDNS, domain name, SSL certificate and other basic services at home and abroad are all provided by Riven Cloud sponsor

6. Accelerated domain name list

The list of domain names of all domestic acceleration services is as follows. You only need to modify the original domain name in the program

Original domain name Accelerate domain name Production method
cdnjs.cloudflare.com cdnjs.loli.net Synchronize Github daily
ajax.googleapis.com ajax.loli.net Nginx inversion
fonts.googleapis.com fonts.loli.net Nginx inversion
fonts.gstatic.com gstatic.loli.net Nginx inversion
themes.googleusercontent.com themes.loli.net Nginx inversion
secure.gravatar.com gravatar.loli.net Nginx inversion

If you encounter any problems, please contact We

*Note: * Some domestic network environments may not be able to use this service, and we have no way to solve this problem for the time being. Please check or change the operator yourself.

Front end CDNJS library and Google Fonts, Ajax and Gravatar domestic acceleration services
Edit without responsibility
Showfom
Release time
Jan 22nd, 2022
Copyright Agreement
People leave their names behind while wild geese leave their voices behind. Flying birds always find their own territory
Remember, let the simple and pure heart feel quietly. You should believe that the beautiful world will always find its own way to you