[WordPress] 外掛分享: SJ HTTP/2 Server Push Optimization

前言介紹

  • 這款 WordPress 外掛「SJ HTTP/2 Server Push Optimization」是 2017-01-16 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2017-01-17,距離現在已有 3029 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sandesh055 |

外掛標籤

http2 | preload | prefetch | performance | server push |

內容簡介

HTTP/2 是新一代的 HTTP 協議,能為網絡提供巨大的能力。HTTP/2 是網絡的未來。HTTP/2 最強大的功能是伺服器推送。大多數流行的託管服務提供者都支援伺服器推送。如果明智使用,伺服器推送能夠提供顯著的性能提升。

在此處檢查 HTTP/2 展示。

伺服器推送允許伺服器將客戶端未請求的要素「打包」在一起。它在瀏覽器實現需要這些資源之前便把資源發送至瀏覽器。這樣避免了常規的 HTTP 要求/回應循環。

此外掛讓 WordPress 向每一個 enqueued 的 script 和 style page 發送一個Link:<...> rel="prefetch" header。這個控制並不影響任何網站的可視部分。

閱讀更多 伺服器推送的資訊

注意:必須使用支援 HTTP/2 的網頁伺服器。

WordPress 4.6 及以上版本

WordPress 4.6 引入了對資源暗示的支援。此控制並不管事,因為我們會將權限交由 WordPress 4.6 和主題/插件開發人員,負責預取正確的資源。

我們添加了一個篩選器,可恢復在 WordPress 4.6 及以上版本中資源暗示的舊行為。在您的 functions.php 文件或自定插件中使用以下篩選器:

`add_filter('sjh_http2_resource_hints', '__return_true');```

原文外掛簡介

HTTP/2 is the new generation HTTP protocol that provide tremendous powers the web. HTTP/2 is future of web. The most powerful feature of HTTP/2 is server push. Most of popular hosting providers supports to Server Push. Server Push provides significant performance gains if used judiciously.
Check HTTP/2 Demo Here.
Server Push allows the server to “bundle” assets that the client didn’t ask for.It send resources to the browser before it even realizes it needs them. This avoids the usual HTTP request/response cycle.
This plugin enabled WordPress to send a Link:<...> rel="prefetch" header to every enqueued script and style page. Is doesn’t support who output their scripts directly into the page itself. This plugin doesn’t affect any visual part of site.
Read more about server push here
Note : It requires a web server that supports HTTP/2.
WordPress 4.6 and above
WordPress 4.6 introduced support for resource hints.
This plugin defers to WordPress 4.6 and theme/plugin developers to responsibly prefetch the right assets.
I’ve added a filter To restore the old behavior of resource hints on WordPress 4.6 and above. Use following filter in your functions.php file or in a custom plugin:
`add_filter('sjh_http2_resource_hints', '__return_true');```

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SJ HTTP/2 Server Push Optimization」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • HTTP/2 Push, Async JavaScript, Defer Render Blocking CSS, HTTP2 server push, HTTP3 push 》, 使用一個簡單的選項,即可推送/預先載入網站中的所有 JS 檔案, 推送/預先載入網站中的所有 CSS 檔案, 在整個網站或基於頁面類型推送/預先載入其他資源, 異...。
  • HTTP/2 Server Push 》HTTP/2 是驅動網頁的傳統 HTTP 協定的新一代。其最強大的功能之一是伺服器推送,一種讓網頁伺服器在瀏覽器需要資源之前就將它們發送到瀏覽器的方式。這避免了...。
  • LH HTTP/2 Server Push 》如果使用得當,伺服器推送功能可以大幅提升網站效能。然而,其他處理伺服器推送的 WordPress 外掛可能會因為粗暴地將檔案推送至瀏覽器而拖慢網站速度。, 許多...。
  • Advanced WPPerformance 》此外掛可為您的 WordPress 網站新增多個效能優化功能。與其他效能外掛不一樣的是,此外掛專注於 HTTP/2 標準(如伺服器推送和 SPDY)。, 精簡資產, 此外掛可...。

文章
Filter
Apply Filters
Mastodon