Ajax and Pjax

by user

Auto Draft

I’m going to talk about pushState. I’ve lernt the technology by using pjax. As you might know ajax and pjax, this technology allows browser to override new contents on the previous ones without reloading.

sample

Assume that there were two pages, the header and footer of which were exactly same decoration.

Ajax

sample

Ajax technology can fetch new contents which wants user override on current contents. This technology is extremely effective in case of switching contents by clicking a tab.

Pjax

sample

Pjax adopt a pushState technology in the internal code. With the pushState technology, as of HTML5, historyAPI enables to behave as browser’s backing function. Therefore pjax can put new contents into the current page like ajax technology can do and Changing the path without reloading coincides with it.

You may also like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

Close Bitnami banner
Bitnami