[wordpress插件] CSS-JS-BoosterCSS-JS-Booster

wordpress 插件 文章 2020-04-06 02:50 448 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

CSS-JS-Booster is a PHP-script that tries to automate as many performance

CSS-JS-Booster是一个PHP脚本,试图自动实现尽可能多的性能

optimizing steps related to CSS and JS embedding as possible.

尽可能优化与CSS和JS嵌入相关的步骤。

Depending on the amount of CSS, CSS-images and JS, this can significantly

根据CSS,CSS图片和JS的数量,这可能会明显

increase loading speed of your site.

提高网站的加载速度。

Note: Check by hand the htaccess-part!

注意:手工检查htaccess-部分!

(see “Installation”)

(请参阅“安装”)

For CSS optimization steps are:

对于CSS优化步骤为:

    • combine multiple CSS-files resulting in less HTTP-requests
    • 合并多个CSS文件,从而减少了HTTP请求

    • Optimize and minify CSS with CSSTidy
    • 使用CSSTidy优化和缩小CSS

    • Embed any CSS-images smaller 24KB as data-URI or MHTML (for IE <= 7)
    • 将所有小于24KB的CSS图像嵌入为data-URI或MHTML(对于IE <= 7)

    • GZIP-compress the resulting CSS
    • GZIP压缩生成的CSS

    • Have browsers cache the result as long as it remains unchanged
    • 只要结果保持不变,浏览器就会缓存结果

    • If IE6: Issue a JS-command to fix background image caching behaviour
    • 如果IE6:发出JS命令以修复背景图像缓存行为

    For JS optimization steps are:

    对于JS优化的步骤是:

      • Fetch JS from external servers and cache it locally
      • 从外部服务器获取JS并将其本地缓存

      • Combine multiple JS-files resulting in HTTP-requests going down
      • 合并多个JS文件导致HTTP请求下降

      • GZIP-compress the resulting JS
      • GZIP压缩生成的JS

      • Have browsers cache the result as long as it remains unchanged
      • 只要结果保持不变,浏览器就会缓存结果

      Support

      支持

      Please send bug reports this way: http://github.com/Schepp/CSS-JS-Booster/issues

      请以这种方式发送错误报告:http://github.com/Schepp/CSS-JS-Booster/issues

      When creating a new issue:

      创建新期刊时:

        • Make sure that you mention in the title that you are talking about the WordPress plugin (as there is a standalone version, too), e.g.: “[WP] Booster killed my site”
        • 请确保在标题中提到您正在谈论WordPress插件(因为还有独立版本),例如:“ [WP] Booster杀死了我的网站”

        • Make sure that you send me a link to your page
        • 确保您向我发送了指向您页面的链接

        • Tell me what exactly is broken
        • 告诉我到底是什么东西

        • It helps if you put the HTML source code of your page resulting from activated Booster on http://pastebin.com/ and include a link to it
        • 如果您将激活的Booster产生的页面的HTML源代码放在http://pastebin.com/上并包含指向它的链接,这会有所帮助

        • It helps if you put the HTML source code of your page resulting from deactivated Booster on http://pastebin.com/ and include a link to it
        • 如果您将因停用Booster而产生的页面HTML源代码放在http://pastebin.com/上,并包含指向该页面的HTML链接,则会有帮助

        • It helps if you tell me which plugins are active
        • 如果您告诉我哪些插件处于活动状态,这会有所帮助

安装步骤

CSS-JS-Booster absolutely requires PHP 5. No PHP 4, sorry…

CSS-JS-Booster绝对需要PHP5。没有PHP 4,对不起...

Version-wise it is tested up until PHP 5.3.

在版本方面,它一直进行测试直到PHP 5.3。

    • Copy the whole booster-folder into wp-content/plugins/
    • 将整个 booster 文件夹复制到 wp-content / plugins /

    • If not already there: create a subfolder named booster_cache inside wp-content/ and CHMOD it to 0777 (give it write-permissions)
    • 如果尚未存在:在 wp-content / 内创建一个名为 booster_cache 的子文件夹,并将其更改为0777(赋予其写权限)

    • Go into the admin-panel to the plugins and activate CSS-JS-Booster
    • 进入管理面板中的插件并激活 CSS-JS-Booster

    • Check if the contents of the file wp-content/plugins/booster/htaccess/.htaccess were put into/appended to the .htaccess-file in the root of your WordPress-site.

    • 检查文件 wp-content / plugins / booster / htaccess / .htaccess 的内容是否已放入/附加到WordPress网站根目录中的.htaccess文件中。

      If not append them by hand.

    • 如果没有,请手动添加。

    Compatibility with other plugins

    与其他插件的兼容性

    CSS-JS-Booster may in rare cases break some other plugins.

    CSS-JS-Booster在极少数情况下可能会破坏其他一些插件。

    I noticed for example that plugins trying to calculate file-paths based on the src-attribute of the script-tag break.

    例如,我注意到插件试图基于脚本标签中断的src属性来计算文件路径。

    So you need to check yourself.

    因此,您需要检查一下自己。

    If your site has many visitors, we suggest that you combine CSS-JS-Booster with WP-Super-Cache.

    如果您的站点有很多访问者,我们建议您将CSS-JS-Booster与WP-Super-Cache结合使用。

下载地址
https://downloads.wordpress.org/plugin/css-js-booster.zip
-EOF-

AI助手支持GPT4.0