這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 …

安裝方式

  1. Download from wordpress plugins or upload to your server “/wp-content/plugins/” manually as usual
  2. Activate and go the Settings link
  3. Put the container DOM ( “body”, “#container_id”, “.some-classes” )

Tested on TwentyTwelve themes, with “#content” container

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈HTML5 pushState〉的開發相關工作。

參與者

將〈HTML5 pushState〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.2

  • Improved performances
  • Add more options
  • Custom loading image (remove default)
  • Loading image position, relative to DOM as CSS background
  • Javascript on-complete callback
  • Avoid pushState from feed links

1.0.1

  • Add parseURI from Steven Levithan <stevenlevithan.com>
  • Avoid pushState from links:
    • any login page
    • wp-admin
    • any pictures (jp*g|png|gif|bmp|css|js)
  • Change name to “HTML5 pushState (on Settings menu and others)

1.0.0

First Release