The REST API already supports adding the query param ?_embed to the URL and the response will then include all “embedded media”, including the featured image but this library call API multiple times to fetch the featured image. May be you are getting featured image from media ID. This process takes so much time and is not good for user experience.
If featured image source url can be fetched in a single API call performance will be much better.
Or if I am unaware, how can I get post lists with featured image without waiting for a long time. It usually takes 5 - 8 seconds to load 10 list of posts with featured image on.
The REST API already supports adding the query param ?_embed to the URL and the response will then include all “embedded media”, including the featured image but this library call API multiple times to fetch the featured image. May be you are getting featured image from media ID. This process takes so much time and is not good for user experience.
If featured image source url can be fetched in a single API call performance will be much better.
Or if I am unaware, how can I get post lists with featured image without waiting for a long time. It usually takes 5 - 8 seconds to load 10 list of posts with featured image on.