Loading statistics...
<% end %> <%# Frame that reloads with morphing on page refresh %> <%= turbo_frame_tag "live-stats", src: live_stats_path, refresh: "morph" do %>Loading live statistics...
<% end %> ``` ```ruby # Controller renders just the frame def statistics @stats = expensive_calculation render layout: false # Or use turbo_frame layout end ``` **Why this is OK:** Defers expensive computation until needed. Valid performance optimization. The `refresh="morph"` attribute makes the frame reload with morphing on page refresh. **Reference:** [Turbo Frames with Morphing](https://turbo.hotwired.dev/handbook/page_refreshes#turbo-frames)