I using REST api v2 and its respond is about 1MB for one request (10 items) and it takes about 6 ~ 11 seconds that very bad. In my web site there is long articles that written in Persian that stored uni-code so there is many characters for respond. I want to make its performance better. I do some permomance stuff for example:
_embedfrom main request that leads to smaller response (about 800K) and better time 5 ~ 9 secs and then make another request to get images url from resourceId (
featured_mediafield) and then load that Url to ImageView with Glide.
Cache all received images by
featured_mediaid field that makes loading image go faster. I don't want cache web post contents and need app to be fresh.
But it seems that till i do not get-rid of unneeded fields in response nothing change dramatically and it makes scene. Why should get un-needed fields in respond? so how i can modify request responses? I wanna remove un-needed fields or customize them or for example Add ImageUrl instead of featured_media that contains Id.