[WordPress] 外掛分享: HTML5 pushState

WordPress 外掛 HTML5 pushState 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「HTML5 pushState」是 2013-02-14 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2013-02-16,距離現在已有 4460 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

lontongcorp |

外掛標籤

ajax | HTML5 | themes | pushstate |

內容簡介

這個 WordPress 外掛基於 History.js (由 Benjamin Lupton 開發)和 HTML5 的 pushState,使你的網站達到 Ajax 功能。

僅支援 HTML5 瀏覽器,專注於行動裝置且不會影響 SEO。
借助 History.js,瀏覽的內容會被儲存在瀏覽器中,因此下次訪問時可以直接呈現,不需要再次向伺服器發出要求,即使有 # 鍵也是如此。

此外掛還使用 jQuery scrollTo 外掛進行優化,使使用者體驗更佳,並能夠閱讀和滾動至錨點。
由於使用了 jQuery 的 AJAX 方法,一些使用 JavaScript 的插件可能無法正確運作。
並且,由於使用了 AJAX 方法,因此不支援跨域 (子域名) 請求。

暫時還沒有 Jetpack API(或類似)的整合,所以它只會請求整個頁面/文章,然後過濾內容以顯示在主體中。

早期版本

此外掛還處於初步版本,因為我還沒有看到真正適合 WordPress 的 pushState 實現方法。

衝突

一些已知的不相容問題包括:

WP SyntaxHighligher
一些電子商務插件 (像是 WooCommerce, eShopping 等) 的插件
新聞滾動條
......如果您知道其他問題,請告訴我......

原文外掛簡介

Ajaxify wordpress with HTML5 pushState based on History.js by Benjamin Lupton.
Support for HTML5 modern browser only, focus on mobile and not breaking SEO rank.
Take an advantages from History.js, visited contents saved into browser’s so it will find and display it directly, no repeating request to server even have anchor (#).
Bundled with jQuery scrollTo plugin for user experiences and used to read and scroll to anchor.
Using jQuery AJAX methods, some plugins that used javascript will not work.
And due to AJAX methods, this will not working with cross-domain (subdomain) calls.
No Jetpack API (or similar) integrations for now, so it just get whole page/post request and filtering the content to show in the body.
Early Version
This is just a preliminary version as I can see no real pushState implementation for wordpress yet.
Conflicts
Some known not works with:

WP SyntaxHighligher
Some eCommerce plugins (WooCommerce, eShopping, etc)’s plugins
News-Ticker
… please let me know …

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.0.2 | trunk |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon