Website Optimization Sanbang

Source: Internet
Author: User
Tags format split version versions window advantage
Website optimization At present, the media on the home page writing skills of many articles, and on the site optimization of the article is relatively rare. In fact, after a website is built, it must be continuously optimized to keep its life alive and evergreen. To this end, the author Schen, a shout, fierce chop Sanbang ...

First, processing images

A bit of experience netizens know, link a webpage, the text part will pass within a few seconds, then is "innocently wait, she also won't come back" image downloading process. An obscure small image, but the equivalent of thousands of words in the storage space. Many web-makers will make big and cool images, but one of the most common uses of netizens is to quickly drag the scroll bar or the dot link to the next page to skip the image! But for these vomiting images, you and I also "reluctant to give up the heart unwilling", then you can use some techniques to optimize the processing of images, to optimize the page, speed up the page download.

1. When the shot was shot

Is your page really concise? See if there are a few nifty FrontPage98, Netscape Navigator, or Internet Explorer business buttons on the page? Do you have a big, ostentatious, animated mail bucket before your email address? Is there a pair of beautiful beauty but with no insignificant content? Delete it! Think of the deletion of a few icons can be accelerated for a few seconds or a few 10 seconds browsing speed of pleasure, why not bear!

There is a more eclectic approach: replace the graphical "submit" button with a textual "submit" button. Replacing GIF animated graphics with static graphics and replacing "header" shapes that can produce special effects with tags will greatly speed up the download of your Web pages.

2. Selection of image formats

Some people think that the image in GIF format or JPEG format, in fact, there is a lot of knowledge in the Web page, many pages is in this small ditch into the boat.

GIF format images are no more than 256 colors, so they apply to neat small graphics such as simple small buttons, navigation bars, and company logos. At the same time, GIF is a compressed format without loss and does not blur the graphic. So for more subtle graphics (such as the maze map in the game introduction), you should choose the GIF format.

Compare Figure 1, figure 22 icons: Figure 1 is a transparent GIF format. It looks clear and concise; Figure 2 is the JPEG format, do you see those dark spots and blurred boundaries that are as disgusting as the dungeons? If you further put the two-format images in a page with a background color, you can see more clearly the advantage of the GIF file when displaying a less than 256-color icon. The biggest advantage of JPEG format image is that it can display 16MB color, the compression rate is higher than GIF format image (and the larger the image compression ratio is better than GIF format file), the most suitable for image in photo form. JPEG is a lossy compression format, so it can cause a loss of detail in the image when compressing. Compare Figure 3 to Figure 64: Figure 3 is a 128-color gif that looks rough. Figure 4 is the best effect (256-color) GIF image, the effect is much better than Figure 3, but appears bitter matte. Figure 5 is a 16MB JPEG image with an asymptotic gradient that is smooth and meticulous, has the best effect, and has a smaller file. Figure 6 is the JPEG image compressed as much as possible, the smallest file, but "can't bear to witness."

Thus, for photo images, it is best to use the JPEG format. You can use Photoshop, Graphic Converter, ACDSee and other software for image compression or format conversion, and then compare the various formats of the number of files and image quality, preferred to take. This work on most of the pictures will greatly reduce the space occupied by the images.

3. Picture size is not trivial

When editing a Web page, be careful to adjust the size or shape of the graphic without the width and height statements. One: Magnified images can produce jagged phenomena, but if you need a small curve or slash of large images (such as the big characters of H), may wish to use a little image in the web page editing software, than directly using large images to save a lot of space; second: Shrinking the image will make the browser download more data than the actual display of the image, Added to the unnecessary download time. The author's approach is to adjust the image to the best size, with HYPERSNAP-DX and other screenshots software cut off, convenient and quick.

Second, use the split window skillfully

As we all know, most browsers set the cache in memory or hard disk to store the latest images. When the browser reads the same file name, it will first be invoked from the cache, greatly improving the efficiency of browsing. Therefore, if the site has a large number of similar page first graphics (such as the company's common logo, button or navigation bar, you might want to cut down an axe at about 5:1 of the page--split the window and make the invariant part a small window so that the duplicated images don't have to be downloaded over and over and can be read directly from the cache.

III. Provision of multiple versions

You have to think that your site is not a primary school time in the classroom to read the proud composition, but to show on the world stage. Different languages, different aesthetics, different operating systems, browsers developed by different companies, different versions of browsers ... The most common, for example, are many versions of browsers that do not support JavaScript, CGI, Frame, GIF89, and so on. When I saw myself using FrontPage98 to make a beautiful web page in the friend Netscape 2.0 "photogenic" performance, it is very dizzy to turn, Girew ... Wake up and immediately use Netscape Gold3.0 to do a low version chain up. Therefore, if you are preparing a larger website, you should consider the simplified Chinese version, the traditional version, the English version, the Plain text version, the Multimedia edition. It sounds scary, but it actually does add up to one more workload, so it can draw viewers all over the world.
In short, remember: If your site is the use of advanced technology production, we must make a request system hardware and software configuration low version (or simply to a plain text version), can not forget a small number of "working-class" netizens.

Author: Zhen Yi



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.