render-async
render_async lets you include pages asynchronously with AJAX
render_async is here to make your pages show faster to users. Pages become faster seamlessly by rendering partials to your views. Partials render asynchronously and let users see your page faster than using regular rendering. It works with Rails and its tools out of the box. A quick overview of how render_async does its magic. User visits a page, render_async makes an AJAX request on the controller action, controller renders a partial, partial renders in the place where you put render_async view helper. JavaScript is injected straight into <%= content_for :render_async %> so you choose where to put it. Advanced usage includes information on different options. render_async renders an element that gets replaced with the content of your request response. In order to have more control over the element that renders first (before the request), you can set the ID of that element.