Front-End Cdnjs library and Google Fonts, Ajax and Gravatar domestic acceleration services __ajax

Source: Internet
Author: User
Tags cloudflare

https://sb.sb/css-cdn/
https://cdn.baomitu.com/

Due to some well-known reasons, a lot of open source JS Library adopted foreign CDN hosting way in the domestic access rate is not satisfactory. So we specially produced this commonweal project, hosted CDNJS all open source JS library and reverse generation of Google Fonts, Ajax and Gravatar, and all support HTTP and HTTPS 1, cdnjs Open source JS library

The method we use is to synchronize Cdnjs Github every day.

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

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

If you use cdnjs.com you only need to replace cdnjs.cloudflare.com for cdnjs.cat.net, such as

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

Replace into

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

CDNJS API Development Document please touch here 2, Google Fonts

We use the method is omnipotent Nginx + keyword replacement

When used, you only need to replace fonts.googleapis.com for fonts.cat.net, such as

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

Replace into

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

If you need Material icons, put

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

Replace into

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

If you need to Early Access,

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

Replace into

@import URL (https://fonts.cat.net/earlyaccess/notosanskannada.css); 

If you need to download a single font, you simply replace fonts.gstatic.com with gstatic.cat.net or themes.googleusercontent.com to Themes.cat.net

Like what

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

Replace into

Https://gstatic.cat.net/s/opensans/v14/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2

Or

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

Replace into

Https://themes.cat.net/static/fonts/anonymouspro/v3/Zhfjj_gat3waL4JSju74E-V_5zh5b-_HiooIRUBwn1A.ttf

Google Fonts API documentation please touch here. 3, Google front-end public library

Methods above, directly replace ajax.googleapis.com as ajax.cat.net can be, such as

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

Replace into

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

Google Front-End Library API development Document touch here 4, Gravatar Avatar

method or ibid, directly replace *.gravatar.com as gravatar.cat.net can be, such as

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

Replace into

https://gravatar.cat.net/avatar/8406d089bc81b664a2610b8d214c1428
5. Sponsor

Both domestic and foreign CDN are made by Cat Networks K.K. Sponsorship
SSL certificates are made by SSL. Do sponsorship 6, old domain name replacement

As a result of the replacement of the sponsor, the old domain name is used 301 Jump form

Cdn.css.net Jump to this article

cdn.css.net/libs/Jump to cdnjs.cat.net/ajax/libs/

cdn.css.net/fonts/and Fonts.css.network jump to Fonts.cat.net

cdn.css.net/ajax/and Ajax.css.network jump to Ajax.cat.net

cdn.css.net/avatar/and Gravatar.css.network jump to Gravatar.cat.net

In addition, because the JSDELIVR no longer provide Github synchronization, and the goods themselves have a web host domestic CDN, so

Cdn.css.net/files/jumps to cdn.jsdelivr.net and no longer provides JSDELIVR domestic acceleration service

The list of domain names for all domestic accelerators is as follows: You only need to modify the original domain name in the program

Original domain name speeding up domain names Making Method
Cdnjs.cloudflare.com Cdnjs.cat.net Daily Sync Github
Ajax.googleapis.com Ajax.cat.net Nginx Anti-generation
Fonts.googleapis.com Fonts.cat.net Nginx Anti-generation
Fonts.gstatic.com Gstatic.cat.net Nginx Anti-generation
Themes.googleusercontent.com Themes.cat.net Nginx Anti-generation
Secure.gravatar.com Gravatar.cat.net Nginx Anti-generation

If you encounter any problems, please leave a message below

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.