kylej1994 / graffiti

2 stars 0 forks source link

Image Transfer Base64 -> Binary #142

Open hjylewis opened 7 years ago

hjylewis commented 7 years ago

Instead of transferring images as base64 strings embedded in json, we should transfer them in binary using separate API endpoints.

This will reduce the payload size and also allow use to load posts and images separately, so that a user doesn't have to wait for all the images to load before seeing anything (progressive/lazy loading)

hjylewis commented 7 years ago

This should be made a priority. Loading a couple image posts is really slow right now.

Separating the image objects from the post objects will allow us to render something and then lazy load the image data.