Paratii-Video / paratii-portal

Component-based web-interface for uploading, browsing and organising content of Paratii's P2P network.
GNU General Public License v3.0
12 stars 5 forks source link

Do not load massive thumbnails in search results and player #660

Closed bent0b0x closed 5 years ago

bent0b0x commented 6 years ago

👇 example of a thumbnail we are loading for search results. This is huge and takes forever to load, let's load a much smaller version 😄

image

We should also do the same for the player, as the start-screen thumbnails also take forever to load

bent0b0x commented 6 years ago

After a bit of digging, I think this is something we need to change on the BE. @ya7ya it looks like we are only generating 1920x1080 thumbnails (or at least that is all the db returns). So the FE has no other option than to load these large files. Do you know how hard it would be to generate smaller sizes?

I was just testing on production on a good connection and it took > 10 seconds for all of the search result thumbnails to load and I suspect it is because they are all very large.

ya7ya commented 6 years ago

yeah. I'll try to see if we can resize thumbnails on the fly to something less huge 😄

bent0b0x commented 6 years ago

Thanks @ya7ya ! You are the best. Let me know if/when this is done and what the FE should do to adjust 😄