Published on

How I Improved My Website Performance Using UploadThing

Authors
How I Improved My Website Performance Using UploadThing

In my portfolio website MehdiChemaa.Com, initially I was serving MP4 files with HTML, CSS, and JS. The MP4 files were getting fetched all at once, and wouldn't play until they are fully downloaded. Since they are large files, this was blocking the main thread, which resulted in freezing the UI.

How I Improved My Website Performance Using UploadThing 1
To overcome this, I used a Cloud Storage provider UploadThing. What it does is, it serves those files in chunks which keeps the UI functional, even if they are not fully downloaded. How I Improved My Website Performance Using UploadThing 2

Checkout my YouTube video where I explained this solution: How I Improved My Website Performance Using UploadThing