Title: HTML5 pushState
Author: lontongcorp
Published: <strong>2013 年 2 月 15 日</strong>
Last modified: 2013 年 2 月 16 日

---

搜索插件

![](https://ps.w.org/pushstate/assets/banner-772x250.png?rev=668727)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/pushstate_aed0db.svg)

# HTML5 pushState

 作者：[lontongcorp](https://profiles.wordpress.org/lontongcorp/)

[下载](https://downloads.wordpress.org/plugin/pushstate.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/pushstate/#description)
 * [评价](https://cn.wordpress.org/plugins/pushstate/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pushstate/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pushstate/#developers)

 [支持](https://wordpress.org/support/plugin/pushstate/)

## 描述

Ajaxify wordpress with HTML5 pushState based on History.js by [Benjamin Lupton](http://github.com/balupton/history.js).

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](https://cn.wordpress.org/wp-admin/options-general.php?page=pushstate)
    link
 3. Put the container DOM ( “body”, “#container_id”, “.some-classes” )

Tested on TwentyTwelve themes, with “#content” container

## 评价

此插件暂无评价。

## 贡献者及开发者

「HTML5 pushState」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ lontongcorp ](https://profiles.wordpress.org/lontongcorp/)

[帮助将「HTML5 pushState」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pushstate)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pushstate/)，查看[SVN仓库](https://plugins.svn.wordpress.org/pushstate/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pushstate/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pushstate/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/pushstate/)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[HTML5](https://cn.wordpress.org/plugins/tags/html5/)
   [themes](https://cn.wordpress.org/plugins/tags/themes/)
 *  [高级视图](https://cn.wordpress.org/plugins/pushstate/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/pushstate/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/pushstate/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pushstate/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pushstate/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/pushstate/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pushstate/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pushstate/reviews/)

## 贡献者

 *   [ lontongcorp ](https://profiles.wordpress.org/lontongcorp/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pushstate/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.lontongcorp.com/2013/02/15/wordpress-html5-pushstate/)