[wordpress插件] CDN ToolsCDN工具

wordpress 插件 文章 2020-03-19 23:30 523 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

CDN Tools is a WordPress plugin that allows you to load javascript

CDN Tools 是一个WordPress插件,可让您加载JavaScript

and media files to an external server to drastically speed page loads.

和媒体文件传输到外部服务器,以大大加快页面加载速度。

You can sideload data to a commercial CDN or just load your larger JS libraries (prototype, jquery) for free from Google’s servers.

您可以将数据侧载到商业CDN上,也可以从Google的服务器中免费免费加载较大的JS库(原型,jquery)。

CDN Tools has been designed to be as easy to use as possible, so give it a shot!

CDN Tools设计为尽可能易于使用,因此请尝试一下!

Your blog’s readers will thank you.

您博客的读者将感谢您。

At this time the only commercial CDN supported is Cloud Files.

目前,唯一支持的商业CDN是Cloud Files。

Check out the plugin homepage to view a screencast.

查看插件主页以查看截屏。

1.0 requires you to reload your files!

1.0需要您重新加载文件!

Do not upgrade until you’re ready to reload.

在您准备重新加载之前,请勿升级。

Catch new releases and other information about my plugins by following @reaperhulk on Twitter.

通过在Twitter上关注 @reaperhulk 来获取有关我的插件的新版本和其他信息。

View complete changelog.

查看完整的更改日志

CDN Loader Dev FAQ

CDN加载程序开发常见问题解答

How do I create a new CDN class?

如何创建新的CDN类?

Create a directory in cdn_classes named whatever the shortname will be.

在cdn_classes中创建一个目录,该目录将命名为短名称。

Then create a file named loader.php inside with the same basic structure as the cloudfiles loader and do everything right.

然后在内部创建一个名为loader.php的文件,该文件具有与cloudfiles loader相同的基本结构,并正确执行所有操作。

Then edit the cdn-tools.php file to add your item.

然后编辑cdn-tools.php文件以添加您的项目。

Easy as pie (if your pie is made of complexity).

就像馅饼一样容易(如果您的馅饼是复杂的)。

I promise I’ll write some better instructions so third parties can contribute CDN plugins at some point.

我保证我会写一些更好的说明,以便第三方可以在某个时候贡献CDN插件。

Currently CDN Tools probably makes some assumptions that are Cloud Files specific.

当前,CDN工具可能会做出某些特定于Cloud Files的假设。

License

许可证

Copyright 2010 Paul Kehrer

 版权2010 Paul Kehrer

This program is free software;

该程序是免费软件;

you can redistribute it and/or modify

您可以重新分发和/或修改

it under the terms of the GNU General Public License as published by

根据GNU发布的GNU通用公共许可的条款进行

the Free Software Foundation;

自由软件基金会;

either version 2 of the License, or

许可的版本2,或

(at your option) any later version.

(由您选择)任何更高版本。

This program is distributed in the hope that it will be useful,

分发该程序是希望它会有用,

but WITHOUT ANY WARRANTY;

但没有任何保证;

without even the implied warranty of

甚至没有默示担保

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

特定目的的适销性或适用性。

See the

看到

GNU General Public License for more details.

有关更多详细信息,请参见GNU通用公共许可证。

You should have received a copy of the GNU General Public License

您应该已经收到了GNU通用公共许可证的副本

along with this program;

与该程序一起;

if not, write to the Free Software

如果没有,请写信给自由软件

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

美国,马萨诸塞州波士顿,富兰克林街51号,基金会公司,邮政编码02110-1301

安装步骤

    1. Upload cdn-tools/ into wp-content/plugins/
    2. 将cdn-tools /上载到wp-content / plugins /

    3. Activate the plugin via the ‘Plugins’ menu.
    4. 通过“插件”菜单激活插件。

    5. Go to the ‘CDN Tools’ option under settings.
    6. 转到设置下的“ CDN工具”选项。

    7. Enable the Google AJAX libs if you wish to load jquery and prototype from Google’s servers.
    8. 如果您希望从Google的服务器加载jquery和原型,请启用Google AJAX库。

    9. If you have a CDN, enable your CDN and enter the login and password.
    10. 如果您有CDN,请启用CDN,然后输入登录名和密码。

    11. Once you have saved the prefs a “Load Files” button will appear.

    12. 保存首选项后,将出现“加载文件”按钮。

      Click it!

    13. 点击它!

    14. You’re all set!
    15. 您都准备好了!

下载地址
https://downloads.wordpress.org/plugin/cdn-tools.1.0.zip
-EOF-

AI助手支持GPT4.0