question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow image loading on version 10.2.0

See original GitHub issue

What version of Next.js are you using?

10.2.0

What version of Node.js are you using?

14.15.0

What browser are you using?

Chrome

What operating system are you using?

Linux

How are you deploying your application?

next start

Describe the Bug

Version change from 10.0.4 to 10.2.0 the images are taking too long to load

In version 10.0.4 TTFB Waiting (306.10ms)

In version 10.2.0 TTFB Waiting (9.22s)

In case I needed to add the external loader domains.

Is it if I’m forgetting to set up something?

Expected Behavior

As I did not make any configuration changes, I believe it should work as before.

At first I added the tags loading="lazy" or priority and the result is the same.

To Reproduce

I was not really able to reproduce the same behaviour in an example repository.

https://github.com/alexandesigner/next-issue-24948

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
gogudacommented, May 11, 2021

It’s not just Chrome on Linux, it’s any browser on any OS. I’ve noticed it with Next.js v 10.0.8 and up, 10.0.7 is the last version I’ve tested where images load at a reasonable speed. It’s simply unsuitable for production.

4reactions
gogudacommented, May 11, 2021

We are also seeing this. My current read is it happens the first time the image is loaded by next/image but not 100% sure. In the meantime, we’re looking at solving by putting CDN caching in front of it.

The first load is slower, which makes sense because Next is optimizing the image and then is supposed to cache the results for subsequent requests.

This having been said, both the conversion process and loading from cache on subsequent requests afterwards seem much slower on any version after 10.0.7.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Loading images has become very slow - 9794619
I suggest trying the simplest fix first, which is to close all applications, shut down your system OS. Restart the system, reopen LR...
Read more >
3 easy steps to fix slow image loading - DEV Community ‍ ‍
Third, the best solution to prevent slow image loading or loading problems in general is to reduce the overall amount of images which...
Read more >
PAN-OS 10.2.0 Known Issues - Palo Alto Networks
This list includes issues specific to Panorama™, GlobalProtect™, VM-Series plugins, CN-Series firewall, and WildFire®, as well as known ...
Read more >
My gallery loading and display image very slow
Solved: I am using a gallery to display the picture that I took with my phone, but the image loading very slowly, and...
Read more >
Angular versioning and releases
Low risk, bug fix release. No developer assistance is expected during update. NOTE: As of Angular version 7, the major versions of Angular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found