In this article,Beijing website productionShangpin China shared three suggestions on improving website performance during peak shopping hours to help e-commerce websites solve performance problems and improve user experience, which was translated by OneAPM engineers.
As the shopping season approaches, retailers need to improve their Web performance to meet the demand in peak hours.This paper puts forward three optimization suggestions, including image optimization, to help people solve the performance problem of Black Five.
The holiday shopping season in the United States will begin on the weekend after Thanksgiving and end on Cyber Monday.At present, most e-commerce websites have completed website compilation, but in order to ensure a good user experience, many people are busy testing their website performance.Even if you are in the "code free" state like most websites, you can still "embrace the Buddha's feet" at the end to further ensure that the website provides customers with an excellent purchase experience during the peak shopping period.
We have consulted a number of excellent website performance preachers to see if there are any suggestions for performance improvement and optimization when the shopping season approaches.Most of them have helped e-commerce leaders solve such problems.Here is our summary:
1. Subscribe to website acceleration service
This is the simplest and most convenient way to improve website performance.You do not need to install any hardware or software or change the website code to use the website acceleration service.They run in the provider's private cloud and are hosted as edge services in major cities around the world.Once subscribed, your website can use their content delivery network and caching services to reduce network latency, eliminate network bottlenecks, optimize content, and provide a consistent performance experience for customers across regions.These services are plug and play, and you only need your web address.CDN companies, such as Akama, Cloudflare, Fastly, Instart Logic, and Verizon Edgecast, can provide web acceleration services, which can prevent the intrusion of security threats while optimizing.Some CDN and website acceleration services can even be run directly on the website through HTTP/2 protocol.
2. Optimize images and HTML
As we all know, too large an image often leads to web page paralysis.In most web pages, images are still the largest content element. According to the HTTP Archive data, images account for about 1.4 MB of the average 2.2MB of website content.So, how big should the image be?For desktop websites, it is best not to exceed 80 KB, while mobile websites or applications are limited to about 20 KB.If you do not want the image to be clipped, you can use free tools to control the file size, such as Image Optimizer, RIOT, and Site Report Card.
In Friday/Cyber's web page, optimizing the "scroll bar" image and "transaction" page is the top priority - this is the only way for users to shop.
In addition to images, other parts of the website can also be compressed.Enable gzip compression on the Web server to compress all HTML, CSS, XML and JavaScript files, which can reduce the bandwidth by up to 70% to transfer the website files to the client browser.At the same time, the loading speed of compressed files is still much faster than that of sending uncompressed files via HTTP.
Next, you need to ensure that HTTP Keep Alive is enabled and working properly.Its function is to allow the browser to reuse the existing TCP connection to the server and avoid creating new links that increase latency.
3. Review third-party labels
Third party tags, whether advertising, social media or content services, are potential pitfalls for Web performance.If these third-party services go down, it will also drag your website down.Therefore, it is necessary to ensure that the location of labels and the third-party services they are linked to are secure.We suggest that when the major shopping season comes, try to reduce the third-party labels as much as possible, because it is urgent to ensure the usability and performance of the website, but it is not necessary to completely block all advertisements.If it does bring good commercial benefits, make sure that the ads do not play Flash, videos or large images.
If you choose to retain the advertising tags, you must monitor the availability and performance of third-party services to prevent them from downtime in certain areas or users.
If you have adopted the above three suggestions, before the peak period comes, remember to load test the website to simulate the impact of millions of customers visiting the website at the same time.There are a large number of commercial applications on the market that can provide simulation services, such as the open source tool Apache JMeter.
Every year when the shopping season comes, the performance problem will also come as scheduled, and many websites may still struggle for it.However, we always believe that the better the preparation, the better the customer experience will be.You may as well take action to contribute to the performance of your website!