当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 你可能不知道的Animation动画技巧与细节
- Implementation of Caesar cipher
- delphi10的rest.json与system.json的踩坑
- 分享几个我日常使用的VS Code插件
- The emergence and significance of micro service
- Deep into web workers (1)
- Insight -- the application of sanet in arbitrary style transfer
- static+代码块+多态+异常
- Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
- Getting started with go wire dependency injection
猜你喜欢
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
Analysis of kubernetes service types: from concept to practice
Delphi10's rest.json And system.json Step on the pit
Summary of the resumption of a 618 promotion project
Reflection on a case of bus card being stolen and swiped
三步一坑五步一雷,高速成长下的技术团队怎么带?
Insight -- the application of sanet in arbitrary style transfer
The instanceof operator in ecmascript7 specification
Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
随机推荐
How to deal with data leakage and deletion related to business life and death?
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
On hiz buffer
awk实现类sql的join操作
What is the relationship between low code vs model driven?
Search and replace of sed
状态压缩:对动态规划进行降维打击
Web安全(一)---浏览器同源策略
What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?
Implementation of Caesar cipher
The prediction accuracy of the model is as high as 94%! Using machine learning to solve the 200 billion dollar inventory problem perfectly
面部识别:攻击类型和反欺骗技术
Python 图片识别 OCR
Ac86u KX Online
Kylin on Kubernetes 在 eBay 的实践
Improvement of maintenance mode of laravel8 update
Adobe Prelude /Pl 2020软件安装包(附安装教程)
Summary of the resumption of a 618 promotion project
laravel8更新之维护模式改进
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?