Title: LH HTTP/2 Server Push
Author: shawfactor
Published: <strong>23 ພຶດສະພາ 2017</strong>
Last modified: 25 ພຶດສະພາ 2017

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/lh-http2-server-push/assets/banner-772x250.jpg?rev=1663161)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/lh-http2-server-push/assets/icon-256x256.png?rev=1662813)

# LH HTTP/2 Server Push

 ໂດຍ [shawfactor](https://profiles.wordpress.org/shawfactor/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/lh-http2-server-push.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/lh-http2-server-push/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/lh-http2-server-push/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/lh-http2-server-push/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/lh-http2-server-push/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/lh-http2-server-push/)

## ຄຳອະທິບາຍ

Server Push provides significant performance gains if used judiciously. However 
other WordPress plugins that handle server push can actually slow your site as they
push files indiscrimentally.

Most push all files enqueued by wordpress to the broswer and use output buffering
to achieve this.

However this plugin does it properly by only pushing the the assets that the browser
requires for the initial user interaction. Namely the scripts and css in the head
of the document.

Note : It requires a web server that supports HTTP/2.

## ການຕິດຕັ້ງ

 1. Upload the plugin files to the `/wp-content/plugins/lh-http2-server-push` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  Installation Instructions

 1. Upload the plugin files to the `/wp-content/plugins/lh-http2-server-push` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

  How do I know if this is working?

There are a couple ways:

 1. [nghttp](https://www.nghttp2.org/documentation/nghttp.1.html) is an HTTP/2 client
    that ships with the nghttp2 suite. `nghttp -v http://example.com` will show all
    the HTTP/2 signalling packets, HTTP headers, content, and resources sent from the
    server in a single request. You can see `PUSH PROMISE` signals from the server 
    and the pushed resources after the main page is sent.
 2. In Google Chrome, chrome://net-internals/#spdy will show a history of server connections
    from the browser. Clicking on a connection will show the discussion between the
    browser and the server. Within that text, you can see `PUSH PROMISE` packets and
    the pushed resources.

  Why aren’t some css styles in the head of thye document pushed?

The plugin relies on all assets being enqueued by the time the wp_enqueue_scripts
action is run. However css styles can be enqueued and still appear in the head as
late as the wp_print_styles action. This is porr design but IU can’t control other
plugins.

  Can I modify the urls that are pushed to the browser by this plugin?

Yes there is a filter lh_htt2_server_push_urls. This filter takes the input of an
associaytive array with the urls being the key and the file type being the value.
By using this filter you can add, remove or modify all the pushed urls.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“LH HTTP/2 Server Push” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[ແປ “LH HTTP/2 Server Push” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/lh-http2-server-push)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/lh-http2-server-push/), 
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/lh-http2-server-push/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/lh-http2-server-push/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/lh-http2-server-push/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

**1.00 May 15, 2017**
 Initial release.

**1.01 May 20, 2017**
 Is admin check.

**1.02 May 24, 2017**
 More robust code.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.02**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **9 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 3.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.7.37**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/lh-http2-server-push/)
 * ແທັກ
 * [http2](https://lo.wordpress.org/plugins/tags/http2/)[performance](https://lo.wordpress.org/plugins/tags/performance/)
   [prefetch](https://lo.wordpress.org/plugins/tags/prefetch/)[preload](https://lo.wordpress.org/plugins/tags/preload/)
   [server push](https://lo.wordpress.org/plugins/tags/server-push/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/lh-http2-server-push/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/lh-http2-server-push/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/lh-http2-server-push/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/lh-http2-server-push/)