Hotwire Discussion

Lazy loading very slow request

We need to load a dynamic part of a page that sometime takes a very long time to long. ( +1 minute).

Hotwire’s lazy loading would be perfect for this, but there is one problem: Because we’re on heroku, http requests timeout after 30 seconds. So we need to put the rendering into a background job and instead pull with intervals and wait for the rendering to finish. Is there an easy builtin way to do this with turbo?

note: we want to use pulling, not websocket push