Process slow network requests with Turbo and Active Model
21-Nov-2024 103
Learn how to build a dynamic loading screen without writing a line of JavaScriptI recently had the opportunity to improve the UX on a client project by backgrounding a slow network request and broadcasting the response to the browser asynchronously with Turbo.
At first, I was a little overwhelmed because I didn’t know exactly how to do this. The response was mapped to a Ruby object, and was not Active Record backed, so I wasn’t sure how to leverage Turbo. However, I found it to be surprisingly easy, and I wanted to share the highlights through a distilled example.
Process slow network requests with Turbo and Active Model #ruby #rubydeveloper #rubyonrails #Process #network #requests #Turbo #Active #Model #active #turbo https://rubyonrails.ba/link/process-slow-network-requests-with-turbo-and-active-model