是pjax的路要走"流体QUOT;导航? [英] Is pjax the way to go for "fluid" navigation?

查看:133
本文介绍了是pjax的路要走"流体QUOT;导航?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始摆弄 pjax 的,因为我想为我的用户提供快速,流畅体验,而很多不必要的HTTP请求和不变的HTML反复呈现。

I've started playing with pjax, as I want to provide a fast, fluid experience for my users without a lot of unnecessary HTTP requests and repeated rendering of unchanged HTML.

我有它的工作相当不错在我的网站,我必须说,这是非常容易启动和运行,考虑差异是如此强大的体验。

I have it working fairly well on my site, and I must say it was surprisingly easy to get up and running, considering how much a difference it makes for the experience.

不过,我看到的 pjax 很少支持 - 无论是上的StackOverflow 和网络一般(一个谷歌搜索上返回顶部完全的无关 Web开发)。

However, I'm seeing very little support for pjax -- both on StackOverflow, and on the web in general (a google search returns many results at the top totally unrelated to web development).

不过,作为即时通讯pressed我与它,即使它没有得到广泛支持的是,我仍然可以使用它。我主要关注的是遇到了大问题后,当我已经投入了我的code在它没有很多的支持。所以我想,以确保有没有别的东西在那里。

But as impressed I am with it, even if it's not widely supported yet, I may still use it. My main concern is running into big problems later when I've already invested my code in it without a lot of support. So I wanted to make sure there wasn't something else out there.

是否有实现相同的功能,pjax规定,我不知道的替代品?或者是它太新了,没有多少人知道这件事吗?或者,它只是一个坏的/有问题的实施?

Are there alternatives for implementing the same functionality that pjax provides that I'm not aware of? Or is it so new that not many people know about it yet? Or, is it just a bad/problematic implementation?

推荐答案

http://caniuse.com/#search=history会给你什么支持pjax的当前版本的指示。

http://caniuse.com/#search=history will give you an indication of what supports the current version of pjax.

在severside code表示嗅探为PJAX头的要求也反应过来的浏览器,很好地降低了其他浏览器。

The severside code that sniffs the request for PJAX header could also react to the browser and degrade nicely for other browsers.

<一个href="http://forum.kohanaframework.org/discussion/8869/kopjax-simplistic-pjax-jquery-ajax-module/p1#Comment_60090">http://forum.kohanaframework.org/discussion/8869/kopjax-simplistic-pjax-jquery-ajax-module/p1#Comment_60090是替代选择一个体面的列表。

http://forum.kohanaframework.org/discussion/8869/kopjax-simplistic-pjax-jquery-ajax-module/p1#Comment_60090 is a decent list of alternate options.

如果你不介意缺少其他浏览器的支持或更改的话那么PJAX唯一的退缩,我可以看到的是,需要有1块/部分更新。

If you don't mind missing support for other browsers or make changes to do so then PJAX's only draw back I can see is the need to have 1 chunk/partial to update.

这篇关于是pjax的路要走&QUOT;流体QUOT;导航?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆