Generally speaking, most individuals building websites use servers with limited bandwidth or servers located overseas. Consequently, they encounter the issue of slow image loading when the website contains many images.
So, how should one handle slow image loading when building a website?Several Solutions for Slow Website Image Loading
Image Compression
Image compression is a relatively common method to solve slow website image loading, and it is fairly simple to get started with.
There are two methods for image compression: One method is to manually compress it yourself, such as using local image compression software or online image compression services. For local image compression, you can try XnConvert software, which Naiba previously wrote about
How to Batch Process Images on Mac: Resize, Add Watermarks, Rotate, which introduced this XnConvert software. Of course, XnConvert's professional capability 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 and uploaded through online image compression services. Naiba often uses the services of the following two websites.
https://tinypng.com/ 和
https://compressor.io/compress Another method is to use plugins for automatic compressionThere 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 plugin compression for a while in the past. It's convenient, but not suitable for large numbers of images due to free quotas. Also, if using a domestic server, it's uncertain if every plugin will work, as some plugins rely on web-based compression processing, which may not be accessible smoothly from within China.
Image CDN or Image Hosting
Naiba has written articles introducing Image CDN before.
using UPYun to accelerate your WordPress websiteUpyun offers 10GB of free traffic per month, which is sufficient for general blog users. Domestically, as long as you have an ICP filing, many CDN providers offer a certain amount of free CDN traffic. You can mix and use several CDNs, so you basically won't run out of traffic. Of course, you can also use image hosting. There are many free image hosting services online; a quick search will find them. However, the issue with image hosting is its unreliable stability. For example, Sina's image hosting was stable for many years but suddenly implemented anti-hotlinking this year, causing great distress for many website owners who had been using it. With so many images, how to retrieve them all? (Actually, there are methods, such as using plugins or scripts to automatically download them locally and then replace the links.)
The most effective method for image acceleration
Although the two methods mentioned above can have some effect on reducing website image slowdown, neither is as effective as this method: not using images at all, publishing pure text articles. That's right, simply don't insert images. Without images, you don't have to worry about slow image loading. Of course, articles without images can negatively impact the user experience. But if your blog is just a place for your own notes and you don't care about traffic or user experience, then skip the images. Naiba's website was like that for a period in the past.
Summary
Alright, the three methods above are solutions for dealing with slow website image loading. The third method is half-joking. Normally, if you know how to set up a CDN, then get one. If you have too many images, consider a paid CDN. If you don't have many images, it's recommended to manually compress them. If traffic increases, upgrade your server bandwidth or use a CDN to accelerate images. Both can solve the problem of slow website image loading. If you want to use image hosting, it's advisable to keep a local backup of the image files to avoid data loss if the free image hosting service becomes unavailable.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.