Image rendering
I try make instagram clone with tanstack start
Technologies:
- Tanstack Start,
- Tanstack Query,
- Tailwind + shadcn,
- Prisma + Turso (LibSQL),
- Better Auth
2 Replies
fascinating-indigo•3mo ago
How are your images rendering so fast?
conscious-sapphire•3mo ago
I didn't really do anything to optimize the images.
For image uploads I use cloudinary and I use the lazy=loading attribute in the <img/> tag.
I also use tanstack query for data fetching and caching, it also helps that the post images are ready on the first load