Question

Image file load too slow on nginx.

Posted February 8, 2017 4.5k views
Nginx PHP WordPress Ubuntu 16.04

Hi.

I am using Ubuntu 16.04 + Nginx 1.10 + php7.08 + Mariadb by wordpress.

owever, the speed at which image files are loaded is too slow like this link.

Where should I check?

Please let me know how to solve this problem.

Thank you.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

That might have been your Internet connection at that time… because that link is fast for me.

@junukseo

When it comes to images loading slow, the issue is generally network, size, or both. The first thing I’d recommend doing is making sure you’re images are compressed. You can do this with services such as:

compressor.io

or

TinyPNG

With DigitalOcean, network is unlikely to be the issue, but generally speaking, almost all images can be compressed to save bandwidth and speed up transfer.

NGINX wouldn’t actually be responsible for slow-loading images unless there’s really something wild or incorrect about your configuration. To check and recommend changes, I’d need to take a look at your nginx.conf file as well as your websites server block.

Submit an Answer