Multiple oneboxes performance problems

Hello everyone. I just meet the onebox gem for rails, i’m making a Linktree clone so, i have a lot of links previews but, currently, the page takes 20-30 seconds to load 11 previews (videos, twitter status, etc). Any ideas to fix it?

1 Like

What we do in Discourse is to cache the result of the onebox in the database when the user saves a post, so you don’t have to construct all the oneboxes during page request.


Right, but you still have a poor load permormance in the first time