Skip to content

Requests for Images Take Seconds to Complete #507

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

Closed
shaoyi1997 opened this issue Jul 9, 2021 · 0 comments · Fixed by #525
Closed

Requests for Images Take Seconds to Complete #507

shaoyi1997 opened this issue Jul 9, 2021 · 0 comments · Fixed by #525

Comments

@shaoyi1997
Copy link

shaoyi1997 commented Jul 9, 2021

Describe the bug
It appears that requests for .png images take seconds to complete.

Do note that next/image and the plugin are used out of the box i.e. no extra configuration such as loaders, domains, etc...
The original images are also <1MB.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://60e93905292d6a0007ab089a--admiring-saha-1bedaa.netlify.app/
  2. Check network tab on console
  3. Refresh the page
  4. Observe that requests for images take seconds to complete

Expected behavior
Requests for images should not take seconds to complete.

Versions

  • Next.js: 10.2.3
  • plugin: Installed via automatic installation (v3.6.3 as of writing)

Supporting Info

You may find the example repo here
https://github.com/shaoyi1997/netlify-nextjs-issue-example

The screenshot below shows a sample of the network requests for images (taken on refresh):

image

You may also find the logs produced by the next_image function for the above requests below:

image

I believe this may be related to #435, but do correct me if I am missing out on any steps or if any config changes are required.

Thank you for your work!

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

Successfully merging a pull request may close this issue.

1 participant