Skip to content

Instantly share code, notes, and snippets.

@khash
Last active February 12, 2021 05:48
Show Gist options
  • Save khash/7a56317030494bf8424d9b45398e802b to your computer and use it in GitHub Desktop.
Save khash/7a56317030494bf8424d9b45398e802b to your computer and use it in GitHub Desktop.
Slow Loading
<%= render 'fast_part' %>
<%= render 'slow_part' %>
# with turbo src
<%= render 'fast_part' %>
<%= turbo_frame_tag :part_2, src: slow_part_path %>
<%= render 'fast_part' %>
<%= turbo_frame_tag :part_2, src: slow_part_path do %>
<img src="spinner.gif"/>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment