renderedtext / render_async

render_async lets you include pages asynchronously with AJAX
https://rubygems.org/gems/render_async/
MIT License
1.08k stars 75 forks source link

Call render_async logic if document state is ready or interactive #114

Closed nikolalsvk closed 4 years ago

nikolalsvk commented 4 years ago

Based on the comment from here https://github.com/renderedtext/render_async/issues/70#issuecomment-626219698, nested partials were not loading with Turbolinks.

By tracking whether the document state is 'completed' or 'interactive', nested render_async logic will perform instead of waiting for turbolinks:load event like it does on the first-page load.