SummarySlow content got you down? Load it later! Use this gem to defer loading of portions of your page until after load. They will be fetched via AJAX and placed on the page when ready.
Progressive Render - https://github.com/johnsonj/progressive_render
Source - https://github.com/driftingruby/033-progressive-render
//= require progressive_render
If you plan on using the default loader, you will need to also include the CSS asset.
*= require progressive_render
class VisitorsController < ApplicationController def index @users = User.all progressive_render end def images # Some task progressive_render end def census # Some task progressive_render end end
<%= progressive_render do %> Slow loading content here... <% end %>