Why is the website slow?

Source: Internet
Author: User

Generally, the website can be opened quickly (unless your network is very poor ). If you find that other people's web pages can be opened quickly, or your website can be opened quickly before, but your website is getting slower and slower, the following are the reasons:
Cause 1: You have used many special JavaScript effects.

For example, the special effects of the mouse, the special effects of the columns on the page, and the special effects of the status bar. These special effects are first downloaded from the server to your local machine and then run and generated on your local machine before you can see them. After the special effects are done more, it takes more than half a day to complete the operation on your local machine. If your machine is configured normally, it will be slower, even if all the effects are completed, your page may be uncomfortable to use.
Javascript brings about not only slow speed, but also a very important point is that most people use it and do not know how it is written, just copy it from other sites for use, as a result, some of them will be lost in the spread process.CodeThe result may be an incorrect or incomplete code, which will paralyze your website; second, if someone playing a prank disguise the malicious code as a special effect code for you, and you don't understand it, copy it to the website, not only will you suffer when you open your website, when someone opens your website, it is likely to become a victim.

Therefore, it is recommended that you use less JavaScript special effects (less than three special effects), otherwise it will certainly be harmful to your website. If you want to use it, select a safer special effect code and copy it to a better site.

Cause 2: You have used an unprocessed large image on the page.

After processing the image, the number of bytes can be smaller. Otherwise, many images will occupy a lot of space at the beginning and make the website open slowly. You can use Photoshop, fireworks, and other plotting software to narrow down the image size.

Cause 3: Your page contains flash or video files.

Many netizens like to make Flash animations, songs, live TV stations, and movies on the homepage of their websites. In fact, this will make your page open much slower. Although flash can be downloaded and played simultaneously, it is often unable to be downloaded smoothly due to network reasons. As a result, your page will remain in the waiting state and cannot be completed smoothly. Movies and TV live broadcasts are even worse. They can only be played after a short period of buffering and downloading. If the network is not good, they cannot be downloaded or played. We recommend that you use less flash and less live video (preferably not ).

Cause 4: too many references to other website content

This also includes referencing images, audio files, and other files on other websites, but also everything you reference on other websites. If you reference something from another website directly on the page, and the website is slow, or the page of the website does not exist, then you can open it slowly.

Cause 5: You direct some domain names you have applied for elsewhere to your website.

Generally, if a top-level domain name directs directly, the speed will not be greatly affected. However, there are many free-of-charge domain names applied for in other places. The speed itself is very slow, and after several turns, the speed will be even slower.

Cause 6: Your Website may have Incorrect code. Find out and correct the error code!
 
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.