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

Source: Internet
Author: User
Tags cloudflare ssl certificate

Because of some well-known reasons, a lot of open source JS library used by foreign CDN hosting method in the domestic speed is not satisfactory. So we made this project, hosted all of Cdnjs's open source JS libraries and reversed Google Fonts, Ajax and Gravatar, all supported HTTP and HTTPS

1, cdnjs Open source JS library

The approach we use is to synchronize Cdnjs Github (http://t.cn/REVf3N2) on a daily schedule.

All JS/CSS libraries can find the link you need here: https://cdnjs.cat.net/ajax/libs/

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

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

Replaced by

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

CDNJS API Development Documentation Please touch here (HTTPS://CDNJS.COM/API?UTM_SOURCE=SB.SB)

2, Google Fonts

The method we use is all-in-one Nginx reverse + keyword replacement

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

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

Replaced by

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

If you need Material icons (HTTPS://MATERIAL.IO/ICONS/?UTM_SOURCE=SB.SB),

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

Replaced by

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

If you need to Early Access, put

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

Replaced by

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

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

Like what

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

Replaced by

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

Replaced by

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

Google Fonts API Documentation Please touch here (https://ke.qq.com/agency/index/index.html#tab=course_admin#admin)

3, Google front-end Public Library

In the same way, the direct replacement of ajax.googleapis.com is ajax.cat.net, such as

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

Replaced by

<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 Documentation Touch HERE (HTTPS://DEVELOPERS.GOOGLE.COM/SPEED/LIBRARIES/?UTM_SOURCE=SB.SB)

4. Gravatar Head

method or ibid, directly replace *.gravatar.com as Gravatar.cat.net,

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

Replaced by

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

5. Sponsors

Both domestic and foreign CDN are sponsored by Cat Networks K.K. (HTTPS://CAT.NET/?UTM_SOURCE=SB.SB)

The SSL certificate is SSL. Do (HTTPS://SSL.DO/?UTM_SOURCE=SB.SB) sponsorship

6. Replace the old domain name

As a result of the replacement of sponsors, the old domain names are used in 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, since JSDELIVR no longer provides Github synchronization, and the goods themselves also have a domestic CDN, so

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

The list of all domestic accelerator domain names is as follows, you only need to modify the original domain name in the program

Reprint | Source: https://sb.sb/css-cdn/

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

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.