Title: Page Speed Optimizer: HTTP/2 Push, Async JavaScript, and Defer CSS
Author: PI Web Solution
Published: <strong>2018 年 12 月 30 日</strong>
Last modified: 2026 年 5 月 4 日

---

搜索插件

![](https://ps.w.org/http2-push-content/assets/banner-772x250.png?rev=3414931)

![](https://ps.w.org/http2-push-content/assets/icon.svg?rev=2540934)

# Page Speed Optimizer: HTTP/2 Push, Async JavaScript, and Defer CSS

 作者：[PI Web Solution](https://profiles.wordpress.org/rajeshsingh520/)

[下载](https://downloads.wordpress.org/plugin/http2-push-content.1.10.46.zip)

 * [详情](https://cn.wordpress.org/plugins/http2-push-content/#description)
 * [评价](https://cn.wordpress.org/plugins/http2-push-content/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/http2-push-content/#developers)

 [支持](https://wordpress.org/support/plugin/http2-push-content/)

## 描述

 * Push / Pre-load all **JS files** in site with one simple option
 * Push / Pre-load all the **CSS files** in your website
 * Push / Pre-load other resources throughout the site or based on the page types
 * Load CSS Asynchronous or Remove any CSS file throughout the site, or there is
   a conditional selector that you can apply
 * Async / Defer / Remove any JS file throughout the site or based on the WordPress
   page type
 * You can create mobile device specific rule to push, pre-load, remove, async js
   or css, this works based on the device user agent detection
 * You can create desktop device specific rule to push, pre-load, remove, async 
   js or css, this works based on the device user agent detection
 * Conditionally remove JS and CSS from various WooCommerce pages like checkout 
   page, cart page, product page, product category page
 * You can push pre-load resource specific on some pages by their ID
 * Remove CSS, JS specific to page or post by their ID
 * Organize rules in group for easy management of the rules
 * Remove CSS, JS on all pages leaving only on the page you specified
 * optimize WooCommerce speed
 * optimize WordPress website speed

>  Mobile and Desktop detection works based on the wp_is_mobile() function of the
> WordPress that detect device based on the user agent data send in the request

Apart from this it also offer ability to remove Css and JS file from specific pages
based in the selected page tag conditions

Eg: if css path is https://s.w.org/style/wp4.css

then you can match it with wp4.css or style/wp4.css or s.w.org/style/wp4.css

you use 2nd method (style/wp4.css) for more precise selection (this avoid error 
when there are 2 style with same file name)

## 屏幕截图

 * [[
 * [[
 * [[

## 常见问题

### I want to push some resources when mobile device is used

Yes you can do that

### I want to remove some css / js when mobile device is used

Yes you can do that using our mobile detect rule, that works based on the browser
user agent detection

### I want to push some resource when the request is coming from desktop

Yes you can do that using Desktop specific rule

### I want to use it for the WooCommerce related js and css file

yes there is rules to control resources based on WooCommerce page types like product
category, shop, single product, cart, checkout pages

### I want to push/pre-load resource on specific page

you can do that there is that allows you to specify the Page id for which you want
to push the resource

### I want to remove some JS and CSS specific on some page

Yes there is rule using that you can remove it for specific page by specifying the
page id, e.g: 1,4,66 will select the page with id 1 ,4, and 66

### I want to remove it for whole site excluding certain pages

Yes you can do that we have rule to apply rule everywhere excluding the page you
specified by id

### Does it work with HTTP3

Yes HTTP3 also support push and pre-load of resources

### Remove CSS and JS from all the pages excluding one page

Yes you can do that by using the Exclude option and the page selection rule, so 
that way js or css will be removed from all the pages except the one you specified

## 评价

![](https://secure.gravatar.com/avatar/cd4bf5ad28b1eb36e0cc0c73fda49a08bb6e024e8ee5e743eb0dca0c8e6080b1?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-41233/)󠁿

 [pagrob](https://profiles.wordpress.org/pagrob/) 2026 年 1 月 26 日

If set well gives excellent results

![](https://secure.gravatar.com/avatar/fbb7a94de6ebaed7aa5e75eac95c83fb011df41bb30f9a762cfe3e61a23a7628?
s=60&d=retro&r=g)

### 󠀁[Does what is says on the tin.](https://wordpress.org/support/topic/does-what-is-says-on-the-tin-41/)󠁿

 [reecejames](https://profiles.wordpress.org/reecejames/) 2025 年 11 月 25 日

Makes the changes requested. Deciding which approach is best to use, does take a
little thinking/testing to confirm best approach.

![](https://secure.gravatar.com/avatar/1008c79cdeb6f42769fa09a9b1ee0275a79729d878e39b68307de0f6dc6184a2?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-14078/)󠁿

 [fermds](https://profiles.wordpress.org/fermds/) 2025 年 9 月 29 日

Excellent

![](https://secure.gravatar.com/avatar/131cdf3bb7346f76b546af0c226df216c91cdd698a95970da923fab92fb0ad83?
s=60&d=retro&r=g)

### 󠀁[yess we can](https://wordpress.org/support/topic/yess-we-can/)󠁿

 [ilgrizly](https://profiles.wordpress.org/ilgrizly/) 2025 年 8 月 1 日

yes we can

![](https://secure.gravatar.com/avatar/41c00bc4a282ecfd35a14a845d9001ad95f97abd940aa4a55fceb5b82f9d5182?
s=60&d=retro&r=g)

### 󠀁[very nice, great success](https://wordpress.org/support/topic/very-nice-great-success/)󠁿

 [wp-3-8-krap](https://profiles.wordpress.org/wp-3-8-krap/) 2024 年 7 月 2 日

Would recommend,

![](https://secure.gravatar.com/avatar/020f8ad7c559ee596f581f1f51540e369cfc88f5ff76ec62f9e8a324160caf66?
s=60&d=retro&r=g)

### 󠀁[Cool APP](https://wordpress.org/support/topic/cool-app-16/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-20115841/) 2024 年 4
月 10 日

Cool APPIt would be great, if there where an automated setup – process.

 [ 阅读所有64条评价 ](https://wordpress.org/support/plugin/http2-push-content/reviews/)

## 贡献者及开发者

「Page Speed Optimizer: HTTP/2 Push, Async JavaScript, and Defer CSS」是开源软件。
以下人员对此插件做出了贡献。

贡献者

 *   [ PI Web Solution ](https://profiles.wordpress.org/rajeshsingh520/)

「Page Speed Optimizer: HTTP/2 Push, Async JavaScript, and Defer CSS」插件已被翻译
至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/http2-push-content/contributors)
为本插件所做的贡献。

[帮助将「Page Speed Optimizer: HTTP/2 Push, Async JavaScript, and Defer CSS」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/http2-push-content)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/http2-push-content/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/http2-push-content/)，或通过[RSS](https://plugins.trac.wordpress.org/log/http2-push-content/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/http2-push-content/)。

## 更新日志

#### 1.10.40

 * Fix: Fixed the issue exact page id field not showing after saving the rule

#### 1.10.31

 * Fix: Fixed the issue with the select2 not loading properly when WooCommerce is
   not installed

## 额外信息

 *  版本 **1.10.46**
 *  最后更新：**4 周前**
 *  活跃安装数量 **6,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/http2-push-content/) 和 [Russian](https://ru.wordpress.org/plugins/http2-push-content/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/http2-push-content)
 * 标签
 * [async css](https://cn.wordpress.org/plugins/tags/async-css/)[async js](https://cn.wordpress.org/plugins/tags/async-js/)
   [defer css](https://cn.wordpress.org/plugins/tags/defer-css/)[Defer JS](https://cn.wordpress.org/plugins/tags/defer-js/)
   [http2](https://cn.wordpress.org/plugins/tags/http2/)
 *  [高级视图](https://cn.wordpress.org/plugins/http2-push-content/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  54 条 5 星评价     ](https://wordpress.org/support/plugin/http2-push-content/reviews/?filter=5)
 *  [  5 条 4 星评价     ](https://wordpress.org/support/plugin/http2-push-content/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/http2-push-content/reviews/?filter=3)
 *  [  3 条 2 星评价     ](https://wordpress.org/support/plugin/http2-push-content/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/http2-push-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/http2-push-content/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/http2-push-content/reviews/)

## 贡献者

 *   [ PI Web Solution ](https://profiles.wordpress.org/rajeshsingh520/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/http2-push-content/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://piwebsolution.com)