We can use Turbolinks or Pjax in our web Apps

Source: Internet
Author: User

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 was similar to Pjax, but instead of worrying about what element in the page to replace,
and tailoring the server-side response to fit, we replace the entire body.
This means, you get the bulk of the speed benefits from Pjax (no recompiling of the JavaScript or CSS)
Without has to tailor the server-side response. It just works.

PJAX[2]:

Pjax = pushstate + Ajax
Pjax is a jQuery plugin this 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]< Span id= "Obj_prefix_dwt3091_com_zimbra_url" class= "Object" >https://github.com/rails/turbolinks
[2] < Span id= "Obj_prefix_dwt3092_com_zimbra_url" class= "Object" >https://github.com/defunkt/jquery-pjax

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.