Rule 1: Make Fewer HTTP Requests(Chapter 1 of High performance Web Sites)
2009-09-25 21:27
555 查看
The rules described in later chapters also present guidelines that help reduce the number of
HTTP requests, but they focus primarily on subsequent page views.
Image Maps
<img usemap="#map1" border=0 src="/images/imagemap.gif">
<map name="map1">
<area shape="rect" coords="0,0,31,31" href="home.html" title="Home">
<area shape="rect" coords="36,0,66,31" href="gifts.html" title="Gifts">
<area shape="rect" coords="71,0,101,31" href="cart.html" title="Cart">
<area shape="rect" coords="106,0,136,31" href="settings.html" title="Settings">
<area shape="rect" coords="141,0,171,31" href="help.html" title="Help">
</map>
CSS Sprites
Inline Images
1 <IMG ALT="Red Star"
2 SRC="data:image/gif;base64,R0lGODlhDAAMALMLAPN8ffBiYvWW
3 lvrKy/FvcPewsO9VVfajo+w6O/zl5estLv/8/AAAAAAAAAAAAAAAACH5BAEA
4 AAsALAAAAAAMAAwAAAQzcElZyryTEHyTUgknHd9xGV+qKsYirKkwDYiKDBia
5 tt2H1KBLQRFIJAIKywRgmhwAIlEEADs=">
Combined Scripts and Stylesheets
HTTP requests, but they focus primarily on subsequent page views.
Image Maps
<img usemap="#map1" border=0 src="/images/imagemap.gif">
<map name="map1">
<area shape="rect" coords="0,0,31,31" href="home.html" title="Home">
<area shape="rect" coords="36,0,66,31" href="gifts.html" title="Gifts">
<area shape="rect" coords="71,0,101,31" href="cart.html" title="Cart">
<area shape="rect" coords="106,0,136,31" href="settings.html" title="Settings">
<area shape="rect" coords="141,0,171,31" href="help.html" title="Help">
</map>
CSS Sprites
Inline Images
1 <IMG ALT="Red Star"
2 SRC="data:image/gif;base64,R0lGODlhDAAMALMLAPN8ffBiYvWW
3 lvrKy/FvcPewsO9VVfajo+w6O/zl5estLv/8/AAAAAAAAAAAAAAAACH5BAEA
4 AAsALAAAAAAMAAwAAAQzcElZyryTEHyTUgknHd9xGV+qKsYirKkwDYiKDBia
5 tt2H1KBLQRFIJAIKywRgmhwAIlEEADs=">
Combined Scripts and Stylesheets
相关文章推荐
- Rule 14: Make Ajax Cacheable(Chapter 14 of High performance Web Sites)
- Rule 8: Make JavaScript and CSS External(Chapter 8 of High performance Web Sites)
- Rule 13: Configure ETags13(Chapter 13 of High performance Web Sites)
- Rule 6: Put Scripts at the Bottom(Chapter 6 of High performance Web Sites)
- Rule 9: Reduce DNS Lookups(Chapter 9 of High performance Web Sites)
- Rule 10: Minify JavaScript(Chapter 10 of High performance Web Sites)
- Rule 4: Gzip Components(Chapter 4 of High performance Web Sites)
- Rule 5: Put Stylesheets at the Top(Chapter 5 of High performance Web Sites)
- Rule 7: Avoid CSS Expressions7(Chapter 7 of High performance Web Sites)
- Rule 11: Avoid Redirects(Chapter 11 of High performance Web Sites)
- Rule 2: Use a Content Delivery Network(Chapter 2 of High performance Web Sites)
- Rule 12: Remove Duplicate Scripts(Chapter 12 of High performance Web Sites)
- Rule 3: Add an Expires Header(Chapter 3 of High performance Web Sites)
- HTTP Overview(Chapter B of High performance Web Sites)
- The Importance of Frontend Performance(Chapter A of High performance Web Sites)
- High Performance Web Sites: Rule 13 – Configure ETags
- [EBook]OReilly - High Performance Web Sites
- 《高性能网站建设指南》(High Performance Web Sites)非官方技术支持
- 读书笔记_high performance web sites
- [EBook]OReilly - High Performance Web Sites