HTML performance optimization, website performance monitoring and optimization

Source: Internet
Author: User
Tags website performance

HTML performance optimization, website performance monitoring and optimization
Abstract:

Page optimization is necessary to adjust the HTML code in the webpage. It can effectively streamline the redundant code in the webpage, speed up the webpage display, and reduce the space occupied by the search engine server by the webpage, to improve user experience and search engine friendliness, you can also better highlight the page themes and improve page relevance. The following is what I need to pay attention to when writing html code. It is for reference only.

 

1. HTML tags are always available. Reduces browser Judgment time

2. Move the script tag to the end of the HTML file because JS will block the display of the subsequent page.

3. Reduce the use of iframe, because iframe will add an http request to block page loading. Even if the content is empty, loading takes time.

4. the id and class are simplified based on understanding and naming. Use '-' to connect the symbols in the connected words containing the keywords, rather '_'

5. Keep the same case sensitivity and Case sensitivity to facilitate browser cache. Although the browser is case insensitive, the w3c standard is lowercase.

6. Clear spaces. Although spaces help us to check the Code, each space is equivalent to one character. The more spaces there are, the larger the page size, the homepage of search engines such as google and baidu removes all spaces and carriage return characters that can be removed, which can accelerate the transmission of web pages. The DW software can be used to batch Delete spaces between html labels. ctrl + a in sublime text, and then shift + tab are all left aligned to clear spaces at the beginning of the line.

7. Reduce Unnecessary nesting and flat as much as possible, because when the browser compiler encounters a tag, it starts to look for its end tag until it matches to display its content, therefore, opening a page is very slow when many nested pages exist.

8. Reduce comments, because too many comments not only occupy space, if there are a large number of keywords in it, it will affect the search engine.

9. Use css + div to replace the table layout, remove the formatting control labels such as strong, B, and I, and use css to control

10. Code should be structured and semantic

11. Try to separate css and javascript into separate files.

12. Remove useless and empty tags

13. Use as few discarded labels as possible, such as B and I, although the browser of a higher version is backward compatible

 

Summary:

HTML pages are displayed to users. Good Code not only brings friendliness to users, but also facilitates ranking of search engines. It simplifies code structure, tag semantics, and standardization during page creation.


Website performance can be optimized

<Meta name = Description = "Google's free online translation service allows instant translation of text and web pages. The translator supports: Chinese (simplified), Arabic, Irish, and Dutch, busk, Spanish, polygary, ice Island, Polish, Persian, Persian, Boolean (Dutch), Danish, German, Russian, French, Filipino, Finnish,
 
How can we optimize the system?

1. Windows 9x users

When searching for files in Windows, you need to access the file allocation table (FAT). It can speed up the next access by storing the path and name of the accessed files. If it is set to a host machine, the system can only store 16 folders and 337 files, with approximately 4 kb of memory. If it is set to a desktop, the system can store the 32 folders and 677 files that have been accessed, and use about 10 KB of memory. The network server can store up to 64 folders and 2729 files, use approximately 40 kb of memory. Therefore, setting the system as a network server can greatly improve the FAT storage capability and speed up access. The Windows optimization master provides seven File System Optimization Methods for users of different user types. These include: Windows Standard Users are applicable to all users without special requirements for Windows; computer games fans are suitable for users who often play 3D games such as CS; users with insufficient system resources are suitable for users with low available space for system resources after startup; Multimedia enthusiasts are suitable for users who often run multimedia programs; large software users are suitable for users who often run several large programs at the same time; the user of the disc recorder is suitable for users who often burn discs. The user of the recording device is suitable for users who often perform audio recording and conversion.
CD/DVD-ROM optimized. Based on the user memory size, hard disk available space automatically provides users with the most accurate DVD-ROM/CD optimal access mode. If you do not use a virtual optical drive, we recommend that you adjust the tuning rod to the "Windows optimization master recommended value" when setting this project. For a virtual optical drive, you must adjust the tuning rod to the maximum value.
Optimize adjacent files and multimedia applications. This option optimizes the size of consecutive adjacent files in the file system. Selecting this option can improve the performance of multimedia files. We recommend that you select. Before setting this item, we recommend that you click the "advanced" button and select an appropriate optimization value based on your hard disk size. during the selection process, the Windows optimization master will provide detailed recommendation information below the tuning bar, as shown in:

Obtain the maximum physical memory for DOS in Win98. This option is provided to users who frequently Run DOS programs.
Optimized CPU priority and latency, fast memory access, and PCI/AGP bus concurrent operations: we recommend that you select this option to speed up CPU/memory operations and enable parallel data access between the PCI bus and the AGP bus.
Dynamic Linked Library automatically removes physical memory when not in use: We recommend that you select this option to free up more physical memory for other applications.
Auto-cooling when the CPU is idle: This option allows the operating system to send the IDEL command to the CPU when the CPU is idle. We recommend that you select.
Optimized asynchronous file transfer: This option enables Windows to return directly when submitting a file without checking whether the data is correctly written to the hard disk (that is, asynchronous buffer submission ), therefore, it can speed up system operation. By default, Windows returns the result after checking that the data is submitted correctly (that is, synchronous buffer submission ). This option is recommended for normal users because there is a low chance of errors during Windows hard drive writing. Do not select this option for users who require high system stability. Note: After "optimize asynchronous file transfer" is selected, "synchronous buffer submission" will be disabled for file systems/troubleshooting in system properties ".
Enable the UDMA transmission mode on the IDE Hard Disk: We recommend that you select. For system stability, neither WIN2K nor WIN9X has enabled the hard drive UDMA66 mode. This optimization project can help you enable this mode.

Related Article

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.