[wordpress插件] Defer CSS Addon for BWP Minify推迟BWP Minify的CSS插件

wordpress 插件 文章 2020-04-14 17:50 419 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

BWP Minify is a powerful plugin to minify and compact several CSS files into only one.

BWP Minify 是一个功能强大的插件,可将多个CSS文件最小化并压缩为一个。

If the resulting CSS file is too big or large, this addon allows to defer the load of this generated CSS file moving their declaration from header to footer, and put it again using asynchronous javascript and DOM manipulation.

如果生成的CSS文件太大或太大,则此插件可以推迟将生成的CSS文件的声明从页眉移到页脚,然后使用异步javascript和DOM操作再次放置该CSS文件。

This technique is recommended to use in conjuntion with the “css-above-the-fold” practice, as well introducing early CSS in-page allows proper styling display while the main CSS file is still loading.

建议将此技术与“ css-above-the-fold”实践结合使用,同时引入早期的CSS页内功能可在仍加载主CSS文件的同时正确显示样式。

There are some options to do the above-the-fold optimization, also we have developed a CSS Above The

有一些方法可以进行首屏优化,我们还开发了 CSS之上

Fold plugin that reuses the current theme stylesheet extracting chunks of CSS code applying a special markup.

折叠插件,该插件可重用当前主题样式表,并使用特殊标记提取CSS代码块。

Another plugin that does this solution but providing an administration area to configure it manually is Autoptimize, that allows to define a specific

另一个实现此解决方案但提供管理区域以手动配置的插件是自动优化,它可以定义特定的

CSS code in a independent way of your theme CSS stylesheet.

以独立的主题CSS样式表的方式编写CSS代码。

安装步骤

    1. Unzip and upload defer-css-addon-for-bwp-minify folder to the /wp-content/plugins/ directory
    2. 将defer-css-addon-for-bwp-minify文件夹解压缩并上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Nothing else, make sure you have also activated the BWP Minify plugin.
    6. 没什么,确保您还激活了BWP Minify插件。

下载地址
https://downloads.wordpress.org/plugin/defer-css-addon-for-bwp-minify.1.0.zip
-EOF-

AI助手支持GPT4.0