Home Website Building Knowledge Standard Post

Standard Post

What to do if website images load slowly_3 methods for website image acceleration

Generally speaking, most individuals who build websites use small bandwidth servers or overseas servers, so they often encounter slow image loading when there are many images on the site. So, what should you do if images load slowly on your website? Several solutions for slow image loading on websites: Image compression Image compression is a common method to solve slow image loading...

Updated on November 1, 2019 About 3 minutes reading
做网站如果图片加载慢怎么办_网站图片加速的3种方法

Generally, most individuals building websites use servers with limited bandwidth or overseas servers, which can lead to slow image loading when there are many images on the website.

So, what should you do if website images load slowly?

Several solutions for slow website image loading

Image compression

Image compression is a common method to solve slow website image loading, and it is relatively easy to implement.

There are two methods for image compression:

One method is manual compression, for example, using local image compression software or online image compression services.

For local image compression, you can try XnConvert. Naiba has previously written aboutMethod for Batch Processing Images on Mac: Resizing, Adding Watermarks, Rotating, which introduces this XnConvert software.

Of course, XnConvert's expertise is not image compression; although it can batch compress images, the effect may not be the best.

NaibabijiThe images on the website are basically processed through online image compression services before uploading. Naiba frequently uses the services of the following two websites.

https://tinypng.com/https://compressor.io/compress

Another method is to use a plugin for automatic compression

There are many image compression plugins on the WordPress platform, but almost all have limits on free compression quantities, such as EWWW Image Optimizer and ShortPixel Image Optimizer.

Naiba also used plugins for compression for a while, which was convenient, but not suitable for many images due to free limits. Moreover, if you use a domestic server, not every plugin may work because some plugins call web-based compression services that are not accessible smoothly in China.

Image CDN or image hosting

Naiba has previously written articles introducing image CDN.using Upyun to accelerate WordPress websites, Upyun offers 10GB of free traffic per month, which is sufficient for general blog users. Basically, as long as you have filed for ICP registration, many CDN providers in China offer some free CDN traffic. You can mix several CDNs, and traffic will generally not be lacking.

Of course, you can also use image hosting services. There are many free image hosting services online; just search and you'll find them. However, the problem with image hosting is reliability. For example, Sina Image Hosting was stable for many years, but this year it suddenly added hotlink protection, causing many website owners who relied on it to suffer. With so many images, how can they retrieve them all? (Actually, there is a method: use plugins or scripts to automatically download images to local and replace links.)

The most effective way to speed up images

Although the two methods mentioned above can have some effect on slowing down image loading, none is as effective as this method: no images, pure text articles.

That's right, just don't insert images. Without images, you don't have to worry about slow image loading.

Of course, articles without images may cause inconvenience to user experience. However, if your blog is just a place for your own notes and you don't care about traffic or user experience, then you can skip images. Naiba's website was like that for a while.

Summary

Alright, the above three methods are solutions to deal with slow image loading on websites.

The third method is half-joking. Normally, if you know how to set up a CDN, then get a CDN. If you have too many images, use a paid CDN.

If you don't have many images, it is recommended to manually compress the images yourself. When traffic increases, upgrade the server bandwidth or use a CDN to accelerate images. Both can solve the problem of slow image loading on websites.

If you want to use an image hosting service, it is recommended to also keep a backup of the image files locally to avoid data loss if the free image hosting service becomes unavailable.

3.4/5 - (10 votes)
Previous Add a Dark Mode Button to a WordPress Website Continue reading content around the same timeline. Next Is it necessary to upgrade to PHP 7.3 for website building? Methods to upgrade to PHP 7 View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: