当前位置:网站首页>Speed up your website with jsdelivr
Speed up your website with jsdelivr
2020-11-07 20:58:00 【User 2595250】
introduce
Due to server configuration 、 Geographical reasons , Many webmasters are not satisfied with the loading speed of their websites . But use Object storage , It will lead to payment , There's a lot of pressure on non-profit sites . And there's a risk of being attacked . jsDelivr It's a free CDN, Can provide free acceleration service for stationmaster . If you want to configure it yourself , You can use the scheme of this article . Most of the comments in this article are at the end of the page , Use GitHub Desk Users can read as they like . alike , In addition to referencing static resources , We can also cite image resources .
at present GITHUB There is no upper limit to the warehouse capacity ! But the official recommendation is 1G within ! Warehouse single file 50M Will receive a warning , Greater than 100M Will be rejected ! jsDelivr Only for 50M The following documents CDN Speed up !
ps: Use VOID We recommend using object storage , You can go to the bottom and choose " pay ".
It is not compatible. There is no special static resource folder / Topics that cannot be mass referenced
Start
1) Download theme static folder With handsome Take the theme for example , The theme folder is in Site root /usr/themes/handsome/assets
Under the table of contents . Conditional can be verified MD5 Are they the same?
2) stay Github Create any warehouse , And grading 、 Assign folder WEB End manually create folder mode : because GitHub The page does not support clicking New Folder , You need to create a new empty file in the folder directory ,/new/new.html
. html Files can be deleted later , Or as Readme.html
It can also be used .
3) Upload static folder Be careful :GitHub Single upload only 100 File , Most topics need to be uploaded in batches , It is recommended to check the number of files in advance .
4) Make sure the file is uploaded correctly
5) Manual access jsDelivr Accelerated warehouse
https://cdn.jsdelivr.net/gh/ user name /repo@version/ file name ( Folder name )
For example, the dream of a new cloud :https://cdn.jsdelivr.net/gh/heyechuanmei/YiMengXinYun@master/static/typecho/handsome/7.3.1/assets
6) Theme background or manual reference to the file With handsome Take the theme for example : Set the appearance → Speed optimization → Upload local static resources to your cdn On → Fill in the outer chain of references
7) Visit website ,F12 Inspection
Link to the original text : https://www.onyi.net/archives/420.html
版权声明
本文为[User 2595250]所创,转载请带上原文链接,感谢
边栏推荐
- Get started, GIT
- 汇编函数mcall systemstack asmcgocall syscall
- Getting started with go wire dependency injection
- 编程界大佬教你:一行Python代码能做出哪些神奇的事情?
- Design pattern of facade and mediator
- Thinkphp6中where条件中字段与字段比较条件的写法
- AFO记
- Kubernetes服务类型浅析:从概念到实践
- 小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
- See once to understand, graphic single chain table inversion
猜你喜欢
What do you think of the most controversial programming ideas?
C language I blog assignment 03
laravel8更新之维护模式改进
什么都2020了,LINQ查询你还在用表达式树
WPF 关于绘图个人总结
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
【解决方案】分布式定时任务解决方案
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
On the coverage technology and best practice of go code
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
随机推荐
Animation techniques and details you may not know
汇编函数mcall systemstack asmcgocall syscall
How Facebook open source framework simplifies pytorch experiment
Thinkphp6中where条件中字段与字段比较条件的写法
Code Review Best Practices
Web安全(一)---浏览器同源策略
How to think in the way of computer
Exploration and practice of growingio responsive programming
密码学-尚硅谷
laravel8更新之维护模式改进
How to choose a good company
【解决方案】分布式定时任务解决方案
Improvement of maintenance mode of laravel8 update
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
Static + code block + polymorphism + exception
awk实现类sql的join操作
建议患者自杀,OpenAI警告:GPT-3用于医疗目的风险太高
如何应对事关业务生死的数据泄露和删改?
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能