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

Web front-end page performance optimization

高洛峰
Release: 2016-10-08 15:56:47
Original
1157 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. Have It is helpful for blind screen readers. As for how to make labels semantic, it depends on personal understanding. I also feel that this aspect is vague, and it probably has something to do with personal habits.)

2. Optimize 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. Optimize the number and size of background images (use images in PNG8 format combined with css sprite. 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