[WordPress] 外掛分享: HTML5 pushState

首頁外掛目錄 › HTML5 pushState
WordPress 外掛 HTML5 pushState 的封面圖片
10+
安裝啟用
★★★★
4.5/5 分(2 則評價)
4775 天前
最後更新
問題解決
WordPress 3.0+ v1.0.2 上架:2013-02-14

內容簡介

這個 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 等) 的插件
新聞滾動條
......如果您知道其他問題,請告訴我......

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「HTML5 pushState」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 …

延伸相關外掛

文章
Filter
Apply Filters
Mastodon