spiritedmedia / systems

Code and documentation for building, deploying, and serving code.
1 stars 1 forks source link

Check Out HTTP/2 Server Push plugin for WordPress #40

Open kingkool68 opened 6 years ago

kingkool68 commented 6 years ago

My plugin gets a list of the CSS and JS which are queued via wp_enqueue_script() and wp_enqueue_style().

And it sends link: response header which enables to pre-load those resources like following. Link: ..., </wp-content/themes/example/style.css>; rel=preload; as=style, ...

https://miya.io/2018/03/10/http-2-server-push-plugin-for-wordpress/