May we can use Turbolinks or Pjax in our web apps
2014-07-17 10:40
274 查看
Turbolinks[1]:
Turbolinks makes following links in your web application faster.
Instead of letting the browser recompile the JavaScript and CSS between each page change,
it keeps the current page instance alive and replaces only the body and the title in the head.
This is similar to pjax, but instead of worrying about what element on the page to replace,
and tailoring the server-side response to fit, we replace the entire body.
This means that you get the bulk of the speed benefits from pjax (no recompiling of the JavaScript or CSS)
without having to tailor the server-side response. It just works.
Pjax[2]:
pjax = pushState + ajax
pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks,
page titles, and a working back button.
pjax
works by grabbing html from your server via ajax and replacing the
content of a container on your page with the ajax'd html.
It then updates the browser's current url using pushState without reloading your page's layout or any resources (js, css),
giving the appearance of a fast, full page load. But really it's just ajax and pushState.
[1] https://github.com/rails/turbolinks
[2] https://github.com/defunkt/jquery-pjax
Turbolinks makes following links in your web application faster.
Instead of letting the browser recompile the JavaScript and CSS between each page change,
it keeps the current page instance alive and replaces only the body and the title in the head.
This is similar to pjax, but instead of worrying about what element on the page to replace,
and tailoring the server-side response to fit, we replace the entire body.
This means that you get the bulk of the speed benefits from pjax (no recompiling of the JavaScript or CSS)
without having to tailor the server-side response. It just works.
Pjax[2]:
pjax = pushState + ajax
pjax is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks,
page titles, and a working back button.
pjax
works by grabbing html from your server via ajax and replacing the
content of a container on your page with the ajax'd html.
It then updates the browser's current url using pushState without reloading your page's layout or any resources (js, css),
giving the appearance of a fast, full page load. But really it's just ajax and pushState.
[1] https://github.com/rails/turbolinks
[2] https://github.com/defunkt/jquery-pjax
相关文章推荐
- How to Manage and Use LVM (Logical Volume Management) in Ubuntu In our previous article we told you
- Create a program the checks all the links in your web page whether they are active or not.
- [SharePoint 2010] 关于 "Error message when view or edit in browser for Word or PowerPoint Web Apps” 错误
- Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or
- How can we decide whether MPI, Pthreads or OpenMP is best for our application?
- How to use Atlas in our Web Projects
- use grep & awk to get ed2k links in the webpage
- 60款开源云应用【Part 2】(60 Open Source Apps You Can Use in the Cloud)
- rails reverse words you can't use them in as your column or tablename
- How to Manage and Use LVM (Logical Volume Management) in Ubuntu In our previous article we told you
- Can we use function on left side of an expression in C and C++?
- use grep & awk to get ed2k links in the webpage
- 60款开源云应用【Part 1】(60 Open Source Apps You Can Use in the Cloud)
- Question 10: Given the following program snippet, what can we conclude about the use of dynamic_cast in C++?
- 60款开源云应用【Part 2】(60 Open Source Apps You Can Use in the Cloud)
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Can't User UserProfileManager.GetUserProfile Get User Userprofile In Web Service,Error:System.ArgumentNullException: Value Cannot Be Null.(不能在Webservice中使用UserProfileManager的GetUserProfile得到用户配置,报错:System.ArgumentNullException: 值不能为空。)