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.

Features

  • Pass in a container ID
  • Pass in an HTML element name
  • Retry on failure
  • Control polling with a toggle
  • Use with respond_to and JS format
  • Customize the content_for name

Project Samples

Project Activity

See All Activity >

Categories

AJAX, File Sync

License

MIT License

Follow render-async

render-async Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of render-async!

Additional Project Details

Programming Language

JavaScript, Ruby

Related Categories

Ruby AJAX Software, Ruby File Sync Software, JavaScript AJAX Software, JavaScript File Sync Software

Registered

2022-02-23