plugin-icon

HTTP/2 Server Push

제작자: Dana Ross·
Enables HTTP/2 server push for local JavaScript and CSS resources.
등급
4.2/5
버전
1.4
활성화된 설치 항목
1K
최근 업데이트일
Mar 25, 2018

HTTP/2 is the new generation of the venerable HTTP protocol that powers the web. Among its most powerful features is server push, a way for web servers to send resources to the browser before it even realizes it needs them. This avoids the usual HTTP request/response cycle which happened for every script or stylesheet on a page.

This plugin enables WordPress to send a Link:<...> rel="prefetch" header for every enqueued script and style as WordPress outputs them into the page source. Unfortunately, it can’t help plugins and themes that output their scripts directly into the page itself, but these will continue to work as they always have.

Requires a web server that supports HTTP/2.

WordPress 4.6 and above

WordPress 4.6 introduced native support for resource hints. By default, this plugin defers to WordPress 4.6 and theme/plugin developers to responsibly prefetch the right assets. Sites running on older versions of WordPress will continue to get the previous behavior where all JavaScript and stylesheets had resource hints printed for them.

I’ve added a filter To restore the old behavior (hint everything) on WordPress 4.6 and above. To use it, add this line to your theme’s functions.php file or a custom plugin:

`add_filter('http2_render_resource_hints', '__return_true');```
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.9.28
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.