该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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