Pjax in rails

For any applications, we require many jquery and css files to be loaded on each request (i.e HTML requests). Instead, we can render all the files at once and reuse these files over-and-over again to save our page-load time. To serve this purpose, we have several gems and one of them is rack-pjax. rack-pjax 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