There are several procedures required to send an HTTP request
Domain name resolution--TCP connection--Send request--wait--download resource--Parse time
This can take a while, so there are several ways to reduce your Web site's HTTP requests as much as possible:
1. CSS Sprite diagram
2. Image map
Image map can be divided into a number of areas to achieve a click on different areas to jump to different links
<Body> <imgsrc= "./1.jpg"Usemap= "#map"> <Mapname= "Map"> < AreaShape= "Rect"coords= "80,20,163,72"href= "Javascript:alert (' eye ')"title= "Eyes"> < AreaShape= "Rect"coords= "48,116,197,186"href= "Javascript:alert (' mouth ')"title= "Mouth"> < AreaShape= "Circle"coords= "121,76,15"href= "Javascript:alert (' nose ')"title= "Nose"> </Map></Body>
3. Merging standalone CSS and JS files
4. Images using Base64 coded display
Note: Data can be generated in PHP, the disadvantage is that the size of the HTML file will become larger, suitable for small pictures
Site optimization--Reduce HTTP requests