{"id":12306,"date":"2010-04-06T21:30:39","date_gmt":"2010-04-06T16:00:39","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=12306"},"modified":"2020-04-16T16:18:32","modified_gmt":"2020-04-16T10:48:32","slug":"optimize-image-downloads-improve-site-speed","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2010\/04\/optimize-image-downloads-improve-site-speed\/","title":{"rendered":"3 Ways to Optimize Image Downloads to Improve Site Speed"},"content":{"rendered":"<p>Matt Cutts recently stated that <strong>improving site speed can boost search rankings<\/strong>. Not to mention the fact that faster download time means a lower bounce rate and higher visitor engagement with your site.<\/p>\n<p>There are many factors that go into site speed. Not the least of which are images and graphics. Having a graphic or image packed site can put a strain on even the fastest internet connections, slowing download times. So, optimizing your images can have a positive effect on your visitors and search rankings.<\/p>\n<h2>#1 Host your own images<\/h2>\n<p>Every time a browser requests your webpage, header information is sent containing instructions for download. If you host your images on other sites such as Flickr or photobucket, the user has to make a separate DNS request to accompany its HTTP request for each additional image.<\/p>\n<p>This is commonly referred to as <strong>hotlinking<\/strong>. Always upload images on your website to the same server and use the same domain name. If the image is hosted on a separate subdomain of your site, the browser will have to make another DNS request resulting in the same issue.<\/p>\n<h2>#2 Using Google\u2019s image optimizer<\/h2>\n<p>Google has built a <a href=\"http:\/\/code.google.com\/speed\/page-speed\/download.html\" target=\"_blank\" rel=\"noopener noreferrer\">Page Speed plugin<\/a> designed to assist in <strong>improving site speed<\/strong>. One of the coolest features of the plugin is that it will automatically optimize images for the web by reducing their size and maintaining their quality.<\/p>\n<p>This is a screenshot of Google\u2019s analysis of Wikipedia\u2019s page on web design. As you can see, there are six images that can be optimized. To optimize, simple \u201csave as\u201d or view and \u201csave as\u201d.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-12315\" title=\"google-optimizer\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/google-optimizer.png\" alt=\"google optimizer \" width=\"500\" height=\"502\" border=\"1\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/google-optimizer.png 500w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/google-optimizer-150x150.png 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/google-optimizer-298x300.png 298w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>This is the non optimized version of the Zen garden image on the wikipedia page:<\/p>\n<p><img decoding=\"async\" title=\"zen\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/zen.jpg\" alt=\"zen page\" width=\"240\" height=\"337\" border=\"1\" \/><\/p>\n<p>This is the optimized version where it has been reduced by 7%:<\/p>\n<p><img decoding=\"async\" title=\"zen\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/zen.jpg\" alt=\"zen page 2\" width=\"240\" height=\"337\" border=\"1\" \/><\/p>\n<p>Can you tell a difference? I can\u2019t. By optimizing all graphics and images on your site you can really reduce the size of your page.<\/p>\n<h2>#3 Reducing HTTP requests with CSS sprites<\/h2>\n<p>Another issue that many websites have is the use of many different graphics and images in the layout of the design. This can result in dozens and dozens of different files that have to be downloaded for one webpage to be displayed.<\/p>\n<p>Every time a web page is loaded, the browser sends an HTTP request to the domain server requesting it send all parts of the website back. A series of communication begins between the server and the browser where data packets are passed along the networking system, which usually consists of seven different layers. If we can reduce the number of times the server and browser have to communicate during the download, the download time will significantly decrease.<\/p>\n<p>One way of accomplishing this is by using <strong>CSS sprites<\/strong>. CSS sprites basically allow you to use one big image for all of your graphics and specify which part to use where thus reducing all of the image requests into one. For example, the Wikipedia page on Web Design could create one big image containing all of the images and graphics. Wikipedia would then only use specific parts of the image for different areas of the site based on points on the image.<\/p>\n<p>Sound complicated? It is, but don&#8217;t worry because many <a href=\"http:\/\/csssprites.com\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">online<\/a> solutions for creating CSS sprites exist. Here is Google\u2019s sprite:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-12314\" title=\"google-sprite\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/google-sprite.png\" alt=\"google sprite\" width=\"150\" height=\"105\" border=\"1\" \/><\/p>\n<p>And youtube&#8217;s:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-12316\" title=\"youtube\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/youtube.png\" alt=\"youtube sprite\" width=\"152\" height=\"450\" border=\"1\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/youtube.png 152w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/youtube-101x300.png 101w\" sizes=\"(max-width: 152px) 100vw, 152px\" \/><\/p>\n<p>Happy optimizing\u2026<\/p>\n<p><em>Guest post is written by Jason Capshaw is founder of\u00a0MyWebTronics.com, an\u00a0Atlanta web design agency. He has been building websites and providing SEO services for five years. You can also <a href=\"https:\/\/www.quickonlinetips.com\/archives\/guest-blogging\/\">write guest posts<\/a> and share your web site tips.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matt Cutts recently stated that improving site speed can boost search rankings. Not to mention the fact that faster download&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[44,49],"class_list":["post-12306","post","type-post","status-publish","format-standard","hentry","category-blogging","tag-guest-posts","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/12306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=12306"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/12306\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=12306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=12306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=12306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}