pinballmap / pbm

Pinball Map
https://pinballmap.com
GNU General Public License v3.0
110 stars 25 forks source link

Use Turbo #1517

Closed RyanTG closed 1 year ago

RyanTG commented 1 year ago

https://github.com/hotwired/turbo-rails

I'm starting to read about Turbo. I don't yet understand exactly how we could possibly use it. But my most immediate goal would be to speed up some load times. In particular the render_machines request can be slow, I think because it's pulling in machine comments and scores. I think Turbo can load those asynchronously. And I believe we can also use Turbo to not load some elements until specifically requested - I am thinking specifically of the "location activity" data (basically, items that are hidden by default and then you click a button to display).

I don't want to jump into this too quickly, but would rather read and learn first.

https://turbo.hotwired.dev/handbook/introduction Maybe this too as a third party guide https://www.hotrails.dev/turbo-rails