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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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