Home  >  Article  >  Web Front-end  >  Web front-end page performance optimization

Web front-end page performance optimization

高洛峰
高洛峰Original
2016-10-08 15:56:471128browse

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.


Statement:
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
Previous article:back to top summaryNext article:back to top summary