LH HTTP/2 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
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.
- 01Upload the plugin files to the /wp-content/plugins/lh-http2-server-push directory, or install the plugin through the WordPress plugins screen directly.
- 02Activate the plugin through the ‘Plugins’ screen in WordPress
Frequently asked questions.
Installation Instructions
Upload the plugin files to the /wp-content/plugins/lh-http2-server-push directory, or install the plugin through the WordPress plugins screen directly. Activate the plugin through the ‘Plugins’ screen in WordPress
How do I know if this is working?
There are a couple ways:
- 01nghttp 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.
- 02In 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.