Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Featured Images are fetched with multiple API calls #59

Open
2shrestha22 opened this issue Nov 11, 2020 · 0 comments
Open

Featured Images are fetched with multiple API calls #59

2shrestha22 opened this issue Nov 11, 2020 · 0 comments

Comments

@2shrestha22
Copy link

2shrestha22 commented Nov 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant