惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

JIPA233の小窝

哔哩漫游X|B站观看港澳台等地区番剧/影视(解除B站番剧限制)&优化B站APP体验教程 - JIPA233の小窝 Proxy SwitchyOmega(Zero Omega)使用指南 - JIPA233の小窝 TikTok 43.9.3 修改版 - JIPA233の小窝 无需服务器,利用Cloudflare自建Bitworden密码管理器 - JIPA233の小窝 利用油猴脚本跳过YouTube广告,在当今YouTube对广告拦截拓展打击的浪潮下。 - JIPA233の小窝 强制启用 uBlock Origin 等 Manifest V2 扩展 在Win10&Win11中继续使用原版IE而非Edge浏览器IE模式 - JIPA233の小窝 让Win10 Chrome正常显示Emoji - JIPA233の小窝 嵌入式YouTube视频播放结束后不要显示其它推荐 - JIPA233の小窝
一些常用的国内访客友好静态资源CDN(前端公共资源库) - JIPA233の小窝
jipa233 · 2025-08-04 · via JIPA233の小窝

AI 摘要

国内访问速度慢?本文教你如何将常用 CDN(cdnjs、unpkg、Google Fonts、Font Awesome)替换为国内镜像—zstatic.net、Google中国镜像—轻松提升页面加载速度,快速部署静态资源,务必试试这套高效方案!

【AD🪧】关注我的TG频道@jipa233,获取一些实用新闻以及搞笑内容!

【声明📢】小窝于2026/03/13进行了重构,评论信息及部分文章无法同步,敬请谅解。

在这里分享一些常用的对国内访客友好的静态资源CDN(前端公共资源库),包括cdnjs、unpkg、Google Fonts、Font Awesome。

cdnjs

cdnjs这里推荐使用zstatic.net,测速结果如下。

具体用法如下:

https://cdnjs.cloudflare.com/ajax/libs/https://cdn.bootcdn.net/https://cdn.staticfile.net/ 替换为 https://s4.zstatic.net/ajax/libs/

比如:

- https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js
- https://cdn.bootcdn.net/jquery/3.5.1/jquery.min.js
- https://cdn.staticfile.net/jquery/3.5.1/jquery.min.js
+ https://s4.zstatic.net/ajax/libs/jquery/3.5.1/jquery.min.js

您可以参考 cdn.zstatic.net 搜索 cdnjs 上的库。

unpkg

https://unpkg.com/ 替换为 https://s4.zstatic.net/npm

比如:

- https://unpkg.com/preact@10.26.4/dist/preact.min.js
+ https://s4.zstatic.net/npm/preact@10.26.4/dist/preact.min.js

Google Fonts

Google Fonts可以使用Google中国提供的镜像,访问速度全国都很快。

gstatic.cngoogleapis.cn的备案主体均为 谷歌广告(上海)有限公司

使用 fonts.googleapis.cn 替换 fonts.googleapis.com

示例:

https://fonts.googleapis.cn/css?family=Open+Sans

使用 fonts.gstatic.cn 替换 fonts.gstatic.com

示例:

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

Font Awesome

因为这个是常用资源,所以单独提一下,仍然选择使用zstatic.net即可。

一般调用方法为https://s4.zstatic.net/ajax/libs/font-awesome/这里填写版本号/css/all.min.css

你可以在这里搜索对应版本号的链接:https://cdn.zstatic.net/libraries/font-awesome