Home > Web Front-end > HTML Tutorial > Web front-end page performance optimization

Web front-end page performance optimization

WBOY
Release: 2016-10-09 08:31:50
Original
1025 people have browsed it

Some commonly used optimizations:

1. Encourage front-end development engineers to achieve structural semantics when writing xhtml (the benefits of tag semantics: 1. Conducive to search engines; 2. Clear structure facilitates teamwork; 3. Conducive to blind screen readers. As for how Semanticizing labels depends on personal understanding. I also feel vague about this aspect, and it probably has something to do with personal habits.)

2. Optimization of the number and size of css and js files (generally, it is recommended that css and js be externally connected to reduce repetitive code and code reuse).

3. Optimization of the number and size of background images (use images in PNG8 format combined with css sprites. A large number of background images will affect the server and increase the number of http requests.).

4. Put the style sheet at the top; put the script at the bottom of the page; use instead of @import.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template