<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Webmonkey &#187; Page Speed</title>
    <atom:link href="http://www.webmonkey.com/tag/page-speed/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Fri, 05 Apr 2013 20:20:46 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>Google&#8217;s Speed Tools for Apache Web Server Hit 1.0</title>
        <link>http://www.webmonkey.com/2012/10/googles-speed-tools-for-apache-web-server-hit-1-0/</link>
        <comments>http://www.webmonkey.com/2012/10/googles-speed-tools-for-apache-web-server-hit-1-0/#comments</comments>
        <pubDate>Thu, 11 Oct 2012 15:57:39 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=59498</guid>
        		<category><![CDATA[servers]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Page Speed]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2012/10/lightstreaks-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2012/10/lightstreaks.jpg" alt="Google&#8217;s Speed Tools for Apache Web Server Hit 1.0" /></div>After nearly two years of testing and improving, Google is removing the beta label from mod_pagespeed, the company's open-source effort to speed up websites running on the popular Apache web server. The Pagespeed Apache module automatically optimizes webpages on the fly, making sites load faster.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_59499" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2012/10/lightstreaks.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2012/10/lightstreaks.jpg" alt="" title="lightstreaks" width="580" height="355" class="size-full wp-image-59499" /></a><p class="wp-caption-text">mod_pagespeed, streaking through a living room near you. Image: <a href="https://secure.flickr.com/photos/pagedooley/2394279602/">Kevin Dooley/Flickr</a></em>.</p></div>
<p>After nearly two years of testing and improving, Google is removing the beta label and releasing <a href="http://googlewebmastercentral.blogspot.com/2012/10/make-web-faster-with-modpagespeed-now.html">mod_pagespeed 1.0</a>. The mod_pagespeed tool is Google&#8217;s open source effort to speed up websites running on the popular <a href="https://www.apache.org/">Apache web server</a>. Pagespeed automatically optimizes pages and their resources, making websites load faster.</p>
<p>No one likes waiting for a websites to load. It doesn&#8217;t seem like fractions of a second would matter, but <a href="http://googleresearch.blogspot.com/2009/06/speed-matters.html">survey after survey</a> tells the same story: On the web it&#8217;s instant gratification or we&#8217;re gone. Not only do your visitors dislike waiting on pages, <a href="http://googlewebmastercentral.blogspot.com/2010/04/using-site-speed-in-web-search-ranking.html">Google dislikes sending people to pages they&#8217;re going to have to wait on</a> and it penalizes slow-loading sites accordingly.</p>
<p>If you&#8217;d like to get mod_pagespeed up and running on your own server, head over to the <a href="https://developers.google.com/speed/pagespeed/mod">mod_pagespeed site</a>, which has downloads and detailed installation instructions. Google&#8217;s Ilya Grigorik also has a nice overview of <a href="http://www.igvita.com/2012/10/10/automating-web-performance-with-mod_pagespeed/">how to automate web performance with mod_pagespeed</a> on his blog.</p>
<p>Despite the beta label that&#8217;s been attached to it for two years, Google says that over 120,000 websites are already using mod_pagespeed, including big-name web hosting companies like Dreamhost and content delivery networks like EdgeCast.</p>
<p>Google&#8217;s mod_pagespeed is part of the company&#8217;s <a href="https://developers.google.com/speed/pagespeed/psol">PageSpeed Optimization Libraries</a>, a set of tools for web developers to test and improve page load times. Other tools include the PageSpeed Service, which essentially does all the hard work of optimizing your pages for you, and <a href="https://developers.google.com/speed/pagespeed/insights">PageSpeed Insights</a>, an analytics tool that offers suggestions on <a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">how you can improve your site&#8217;s load times</a>.</p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2012/10/googles-speed-tools-for-apache-web-server-hit-1-0/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Google&#8217;s New Page Speed Tool Speeds Up Your Website</title>
        <link>http://www.webmonkey.com/2012/08/new-google-page-speed-tool-speeds-up-your-website/</link>
        <comments>http://www.webmonkey.com/2012/08/new-google-page-speed-tool-speeds-up-your-website/#comments</comments>
        <pubDate>Mon, 06 Aug 2012 16:36:52 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=58276</guid>
        		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Page Speed]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2012/08/pagespeedrewritersm-200x100.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2012/08/pagespeedrewritersm.jpg" alt="Google&#8217;s New Page Speed Tool Speeds Up Your Website" /></div>On the web there's no such thing as too fast. To help your pages load even quicker Google's PageSpeed service has added a new feature that looks at the whole webpage and makes sure the visible, above-the-fold content loads before anything else. ]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><div id="attachment_58279" class="wp-caption aligncenter" style="width: 590px"><a href="http://www.webmonkey.com/wp-content/uploads/2012/08/pagespeedrewriter.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2012/08/pagespeedrewritersm.jpg" alt="" title="pagespeedrewritersm" width="580" height="269" class="size-full wp-image-58279" /></a><p class="wp-caption-text">Page Speed&#8217;s rewriter is done before the unoptimized version even starts loading images. <em>Image: Screenshot/Webmonkey</em></p></div></p>
<p>Google has added yet another trick to the company&#8217;s Page Speed web optimization service &#8212; a page rewriter <a href="http://googledevelopers.blogspot.com/2012/08/turbocharging-web-sites-with-new.html">that turbocharges your site</a> by making sure that your visible, above-the-fold content loads before anything else.</p>
<p>Google started on its web optimization quest with the Page Speed browser extension, then it moved the <a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">Page Speed tool online</a> with <a href="http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/">an API</a> and then created the <a href="http://www.webmonkey.com/2011/07/googles-new-page-speed-service-promises-to-speed-up-your-website/">Page Speed Service</a> to handle some of the tricky bits of web optimization for you. Now the Page Speed service has another trick for users.</p>
<p>Page Speed&#8217;s new rewriter, which Google refers to as &#8220;Cache and Prioritize Visible Content,&#8221; works by optimizing three main things on your site &#8212; all of which are standard best practices for speeding up a website, but are often hard for smaller sites to pull off. First off the Page Speed rewriter isolates those parts of the page that can&#8217;t be cached (logged in user info for example) and caches the rest of the page.</p>
<p>The next step is, as the name implies, to &#8220;prioritize visible content rendering.&#8221; The Google blog is a little unclear on how this works, saying only that the rewriter &#8220;automatically determines and prioritizes the content that is above the fold of the browser, so that it doesn&#8217;t have to compete with the rest of the page.&#8221;</p>
<p>The third part of Page Speed&#8217;s optimization is to defer the loading of any JavaScript until the visible content is loaded.</p>
<p>At the moment the Page Speed Service is invite-only, but if you&#8217;d like to request access, head on over to the <a href="https://docs.google.com/a/google.com/spreadsheet/viewform?hl=en_US&amp;formkey=dDdjcmNBZFZsX2c0SkJPQnR3aGdnd0E6MQ">sign-up page</a> and drop your e-mail and URL in the form. </p>
<p>While you&#8217;re waiting for access, if you want to see what Page Speed&#8217;s rewriter might be able to do for your site, you can head over to <a href="http://www.webpagetest.org/pss?option=prioritize_visible_content">Web Page Test</a>, which now has a profile for the Page Speed rewriter. I ran my personal site (a very simple, static HTML site served by Nginx) through it and found that, as you can see in the image above, the rewriter considerably improved the first load time of images (pretty much the only thing that takes any time to load on my site). </p>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2012/08/new-google-page-speed-tool-speeds-up-your-website/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Google&#8217;s New Page Speed Service Promises to Speed Up Your Website</title>
        <link>http://www.webmonkey.com/2011/07/googles-new-page-speed-service-promises-to-speed-up-your-website/</link>
        <comments>http://www.webmonkey.com/2011/07/googles-new-page-speed-service-promises-to-speed-up-your-website/#comments</comments>
        <pubDate>Thu, 28 Jul 2011 14:55:10 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=51237</guid>
        		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Page Speed]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2011/07/page_speed_w.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2011/07/page_speed_w.jpg" alt="Google&#8217;s New Page Speed Service Promises to Speed Up Your Website" /></div>Google still wants to make your website load faster. Google's new Page Speed Service is one part optimization tool and one part content-distribution network.]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><a href="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car.png"><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car-300x138.png" alt="" title="johnny_automatic_speeding_car" width="300" height="138" class="alignright size-medium wp-image-48565" /></a>Google still wants to make your website load faster. The company started on its web optimization quest with the Page Speed browser extension, then it moved the <a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">Page Speed tool online</a> with <a href="http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/">an API</a> and now Google is <a href="https://docs.google.com/a/google.com/spreadsheet/viewform?hl=en_US&amp;formkey=dDdjcmNBZFZsX2c0SkJPQnR3aGdnd0E6MQ">offering up the Page Speed Service</a>.</p>
<p>Google&#8217;s new Page Speed Service is invite-only at the moment, but if you&#8217;d like to request access, head on over to the <a href="https://docs.google.com/a/google.com/spreadsheet/viewform?hl=en_US&amp;formkey=dDdjcmNBZFZsX2c0SkJPQnR3aGdnd0E6MQ">sign up page</a> and drop your e-mail and URL in the form.</p>
<p>Google&#8217;s new Page Speed Service is one part optimization tool and one part content distribution network (CDN). Google essentially grabs your website, caches it and serves it from the company&#8217;s extensive network of servers around the world. The best part about Page Speed is its simplicity &#8212; all you need to do is point your DNS to Google&#8217;s servers. After that Google handles the rest and you don&#8217;t need to worry about minifying your JavaScript, compressing images, caching, gzipping, or any other web performance best practices.</p>
<p>For your site&#8217;s visitors everything works just as it always has, the page load times are just shorter. At least that&#8217;s the theory. In reality, how much the Page Speed Service will speed up your site varies considerably depending on how well optimized your website is to begin with.</p>
<p>The Google Code blog reports that, on average, pages served from Page Speed are between twenty and sixty percent faster. If you&#8217;re curious to see how Google&#8217;s Page Speed service stacks up against your current setup, you can <a href="https://code.google.com/speed/pss/docs/tryit.html">compare load times through WebPageTest</a>. I ran my site through the test and the Google optimized version was roughly 40 percent faster, though judging by the screenshots it didn&#8217;t quite render properly. </p>
<p>The rendering problems may have been WebPageTest&#8217;s fault, though the Page Speed Service documentation seems to indicate that not every page is going to render properly. The Page Speed Service offers a tool to <a href="http://code.google.com/speed/pss/docs/settings.html#blacklist">blacklist any specific pages</a> you don&#8217;t want Page Speed to serve up because it doesn&#8217;t render them properly. </p>
<p>It&#8217;s also worth bearing in mind that, while a 40 percent speed boost did shave over half a second off my site&#8217;s page load times, most of the performance gain came from Page Speed&#8217;s heavily cached CDN. If your site is already well-optimized, but lacks a (somewhat expensive) CDN, Google Page Speed isn&#8217;t going to help you out any more than existing services like Amazon&#8217;s CloudFront or any other CDN. </p>
<p>The Page Speed docs explain some more <a href="http://code.google.com/speed/pss/docs/evaluate.html">in-depth methods of testing</a> your website using various browser proxy add-ons so you can perform your own, more thorough speed tests before you commit to using the Page Speed Service.</p>
<p>For now the Page Speed Service is free, but don&#8217;t expect that to last. Eventually, when Page Speed opens up to everyone, Google plans to start charging for it. For now the company isn&#8217;t committing to actual prices, saying only that Page Speed will be &#8220;competitive.&#8221; Presumably that means something in the ballpark of Amazon&#8217;s S3, CloudFront and similar services.</p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2011/05/speed-up-your-site-with-google-analytics-new-page-speed-tools/">Speed Up Your Site With Google Analytics New Page Speed Tools</a></li>
<li><a href="http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/">Speed Up Your WordPress Site With Google’s New Page Speed API</a></li>
<li><a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">Google Page Speed Now Works in any Web Browser</a></li>
<li><a href="http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/">How to Speed Up Your Site With YSlow and Page Speed</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2011/07/googles-new-page-speed-service-promises-to-speed-up-your-website/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>

        
    </item>
    
    <item>
        <title>Speed Up Your WordPress Site With Google&#8217;s New Page Speed API</title>
        <link>http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/</link>
        <comments>http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/#comments</comments>
        <pubDate>Wed, 11 May 2011 13:46:43 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=50902</guid>
        		<category><![CDATA[APIs]]></category>
		<category><![CDATA[Blog Publishing]]></category>
		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[Page Speed]]></category>
		<category><![CDATA[WordPress]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2011/05/page-speed-api-example.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2011/05/page-speed-api-example.jpg" alt="Speed Up Your WordPress Site With Google&#8217;s New Page Speed API" /></div>Google&#8217;s Page Speed testing tool, which recently went from a browser add-on to a web-based tool, now sports a new API. The Page Speed Online API allows outside applications to send URLs to Page Speed and get back a list of things the site developer can do to speed up the page in question. If [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><a href="http://www.webmonkey.com/wp-content/uploads/2011/05/page-speed-api-example.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2011/05/page-speed-api-example.jpg" alt="" title="page-speed-api-example" width="313" height="140" class="alignleft size-full wp-image-50904" /></a>Google&#8217;s Page Speed testing tool, which recently went from <a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">a browser add-on to a web-based tool</a>, now sports a new API. The <a href="http://googlewebmastercentral.blogspot.com/2011/05/page-speed-online-has-shiny-new-api.html">Page Speed Online API</a> allows outside applications to send URLs to Page Speed and get back a list of things the site developer can do to speed up the page in question.</p>
<p>If you&#8217;d like to try it, head over to the <a href="https://code.google.com/apis/pagespeedonline/v1/getting_started.html">new documentation page</a> and request an API key. Sample apps include using the Page Speed Online API to display suggestions for speeding up sites or even combining the API with the Google Charts API to show a visual breakdown of the page&#8217;s resources.</p>
<p>For a more practical example of how the Page Speed Online API can help out your site, check out the latest version of the <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache plugin for WordPress</a>. If you&#8217;re not already using W3 Total Cache in your WordPress installation, we highly recommend you install it, especially now that the plugin taps into the Page Speed API. W3 Total Cache now sends your pages to the Page Speed Online API and then offers Page Speed suggestions, right in the WordPress dashboard. </p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2011/05/speed-up-your-site-with-google-analytics-new-page-speed-tools/">Speed Up Your Site With Google Analytics New Page Speed Tools</a></li>
<li><a href="http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/">Google Page Speed Now Works in any Web Browser</a></li>
<li><a href="http://www.webmonkey.com/2011/03/yahoos-yslow-page-speed-tool-now-available-for-chrome/">Yahoo&#8217;s YSlow Page Speed Tool Now Available for Chrome</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2011/05/speed-up-your-wordpress-site-with-googles-new-page-speed-api/feed/</wfw:commentRss>
        <slash:comments>2</slash:comments>

        
    </item>
    
    <item>
        <title>Google Page Speed Now Works in any Web Browser</title>
        <link>http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/</link>
        <comments>http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/#comments</comments>
        <pubDate>Fri, 01 Apr 2011 13:18:32 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=50450</guid>
        		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[Page Speed]]></category>
        <description><![CDATA[Google&#8217;s Page Speed tool is a great way to find out how you can speed up your website, and now Google has released a version that works in any browser as an easy-to-use online service. The new Page Speed Online couldn&#8217;t be simpler &#8212; just enter a URL and Page Speed Online will evaluate and [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car-300x138.png" />Google&#8217;s Page Speed tool is a great way to find out how you can speed up your website, and now Google has released a version that works in any browser as an easy-to-use online service. The new <a href="http://pagespeed.googlelabs.com/">Page Speed Online</a> couldn&#8217;t be simpler &#8212; just enter a URL and Page Speed Online will evaluate and offer up suggestions on how you can speed up your website.</p>
<p>The online version of Page Speed adds a new trick to the mix, offering a separate analysis of your site&#8217;s mobile performance. Among the useful mobile suggestions are serving scaled images (rather than resizing with CSS or HTML) and minifying your HTML. </p>
<p>Page Speed is a handy tool for testing your sites, and now that it works in any web browser it&#8217;s even more useful, but it still can&#8217;t match some of the nicer features in Yahoo&#8217;s <a href="http://www.webmonkey.com/2011/03/yahoos-yslow-page-speed-tool-now-available-for-chrome/">YSlow plugin for Chrome</a> and Firefox. For example, where Google Page Speed suggests compressing images further, YSlow goes the extra mile to offer links to more compressed images, which you can quickly download and drop into your site. </p>
<p>Still, when it comes to testing your site&#8217;s performance, it isn&#8217;t a matter of using the best tool, it&#8217;s a matter of using all the tools. In that regard Page Speed Online is a welcome addition to the toolkit.</p>
<p><em>Illustration from &#8220;Physics for Entertainment&#8221; by Yakov Isidorovich Perelman from <a href="http://www.archive.org/details/physicsforentert035428mbp">Archive.org</a></em></p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2011/03/yahoos-yslow-page-speed-tool-now-available-for-chrome/">Yahoo&#8217;s YSlow Page Speed Tool Now Available for Chrome</a></li>
<li><a href="http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/">How to Speed Up Your Site With YSlow and Page Speed</a></li>
<li><a href="http://www.webmonkey.com/2009/12/new_google_tools_help_speed_up_your_website/">New Google Tools Help Speed Up Your Website</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2011/04/google-page-speed-now-works-in-any-web-browser/feed/</wfw:commentRss>
        <slash:comments>5</slash:comments>

        
    </item>
    
    <item>
        <title>Page Speed Add-on Headed to Chrome</title>
        <link>http://www.webmonkey.com/2010/09/page-speed-add-on-headed-to-chrome/</link>
        <comments>http://www.webmonkey.com/2010/09/page-speed-add-on-headed-to-chrome/#comments</comments>
        <pubDate>Wed, 08 Sep 2010 21:30:13 +0000</pubDate>

                <dc:creator>Michael Calore</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=48624</guid>
        		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[Page Speed]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_riding_a_bike.png" type="image/png" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_riding_a_bike.png" alt="Page Speed Add-on Headed to Chrome" /></div>One of the most useful browser extensions for web development is coming to Chrome. Google is working on a Chrome version of its Page Speed add-on. Page Speed is an essential tool for testing sites in Firefox. It breaks down all the stuff on your page and shows you how long everything is taking to [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><a href="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_riding_a_bike.png"><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_riding_a_bike.png" alt="" title="johnny_automatic_riding_a_bike" width="204" height="250" class="alignnone size-full wp-image-48625" /></a>
<p>One of the most useful browser extensions for web development is coming to Chrome.</p>
<p>Google is working on a Chrome version of its <a href="http://code.google.com/speed/page-speed/">Page Speed add-on</a>. Page Speed is an essential tool for testing sites in Firefox. It breaks down all the stuff on your page and shows you how long everything is taking to download, execute and render. It&#8217;s also fully <a href="http://code.google.com/p/page-speed/">open source</a> and it has its own <a href="http://code.google.com/speed/page-speed/gallery.html">SDK</a>.</p>
<p>Matthew D. Steele, one of the key engineers at Google responsible for Page Speed, <a href="http://groups.google.com/group/page-speed-discuss/browse_thread/thread/216031c449929470/d5c37254bdbc1d4a?#d5c37254bdbc1d4a">has confirmed</a> that a Chrome version is &#8220;already in the works,&#8221; and will be ready within a couple of months.</p>
<p>Page Speed currently runs inside of <a href="http://getfirebug.com/">Firebug</a> on Firefox, and there is already <a href="http://getfirebug.com/firebuglite">Firebug Lite</a> for Chrome. There&#8217;s no word yet on whether Page Speed will remain dependent on Firebug (Lite) once it moves into Chrome, or if it will be a stand-alone add-on, but we&#8217;ll find out more details soon. In the meantime, if you have an answer to that mystery, let us know in the comments.</p>
<p>If you are curious about using Page Speed to speed up your website, check out Scott&#8217;s recent post on <a href="http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/">using Page Speed and YSlow</a> together.</p>
<p><b>See Also:</b></p>
<ul>
<li><a href="http://www.webmonkey.com/2010/09/chrome-6-arrives-just-in-time-for-cake/">Chrome 6 Arrives, Just in Time for Cake</a></li>
<li><a href="http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/">How to Speed Up Your Site With YSlow and Page Speed</a></li>
<li><a href="http://www.webmonkey.com/2010/07/apple-updates-safari-turns-on-extensions/">Apple Updates Safari, Turns on Extensions</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/09/page-speed-add-on-headed-to-chrome/feed/</wfw:commentRss>
        <slash:comments>3</slash:comments>

        
    </item>
    
    <item>
        <title>How to Speed Up Your Site With YSlow and Page Speed</title>
        <link>http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/</link>
        <comments>http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/#comments</comments>
        <pubDate>Wed, 01 Sep 2010 19:00:42 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=48553</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Basics]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Page Speed]]></category>
		<category><![CDATA[stylesheets]]></category>
		<category><![CDATA[YSlow]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car.png" type="image/png" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car.png" alt="How to Speed Up Your Site With YSlow and Page Speed" /></div>We all want our websites to load faster, but speeding things up can be tricky. There are numerous tried and true tricks we all use to keep page load times down, but once you&#8217;ve done a few rounds of optimization, you tend to hit a plateau where it&#8217;s tough to squeeze any more speed out [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><a href="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car.png"><img src="http://www.webmonkey.com/wp-content/uploads/2010/09/johnny_automatic_speeding_car-300x138.png" alt="" title="johnny_automatic_speeding_car" width="300" height="138" class="alignright size-medium wp-image-48565" /></a>
<p>We all want our websites to load faster, but speeding things up can be tricky. There are numerous tried and true tricks we all use to keep page load times down, but once you&#8217;ve done a few rounds of optimization, you tend to hit a plateau where it&#8217;s tough to squeeze any more speed out of your code.</p>
<p>Most web developers are familiar with tools like <a href="http://yslow.org/">YSlow</a> and Google&#8217;s <a href="http://code.google.com/speed/page-speed/">Page Speed</a>. If you haven&#8217;t ever used them, go install both right now &#8212; they&#8217;re available as add-ons for Firefox. Both tools are designed to help you speed up your site&#8217;s page load times by showing you exactly what&#8217;s slowing them down, and used in tandem, they can alert you to some optimizations you never knew existed.</p>
<p>I recently sat down and tried, as best I could, to do everything that YSlow and PageSpeed recommended and I managed to shave my page load time roughly in half. When I started, my homepage took between four and six seconds to load. Now, it loads in one to three seconds on average.</p>
<p>To compare load times I used both YSlow and PageSpeed, as well as <a href="http://www.webpagetest.org/">WebPageTest</a>. Those numbers aren&#8217;t exactly benchmarks, since there&#8217;s some speed variation depending on what&#8217;s loaded in the cache, but a performance increase of about 30-40 percent is what you can expect if you haven&#8217;t yet explored these methods.</p>
<p>Some of what YSlow and Page Speed will tell you should be obvious &#8212; <a href="http://developer.yahoo.com/performance/rules.html#num_http">limit your HTTP requests</a>, <a href="http://developer.yahoo.com/performance/rules.html#minify">minimize</a>, compress and combine your JavaScript and CSS files, <a href="http://www.alistapart.com/articles/sprites">use CSS Sprites</a>, put your script tags at the bottom of the page and compress your images.</p>
<p>However, some of the more obscure and less-used (judging by viewing source code around the web) techniques these tools point out can make a surprising difference.</p>
<p>Before we get to the &#8220;how to&#8221; part, keep in mind the old saying &#8220;premature optimization is the root of all evil.&#8221; What I did with YSlow and its ilk was the last bit of optimization I did. In other words, be sure you&#8217;ve taken care of the big problems before you try to stamp out the smaller ones.</p>
<p>That said, I was surprised by how much of a difference some very small changes made.</p>
<p><span id="more-48553"></span></p>
<h3>The Good</h3>
<p>Long before I turned to YSlow, I optimized my backend code to minimize database hits, installed <a href="http://memcached.org/">Memcached</a> to further reduce the database load, and set up a separate domain to serve static files. The later change made a huge difference since the main instance of my site is running Apache and the static files are now served by a much lighter-weight, faster <a href="http://nginx.org/">Nginx</a> server.</p>
<p>The site I set out to test YSlow and Page Speed on is my <a href="http://luxagraf.net/">travel blog</a>, which is somewhat image-heavy. So, the first thing I did was run all my images through <a href="http://developer.yahoo.com/yslow/smushit/">SmushIt</a>, Yahoo&#8217;s lossless image compression tool that&#8217;s part of YSlow. </p>
<p>All of the images on the site were already compressed using Photoshop&#8217;s &#8220;Save for Web&#8221; exporter, but I still managed to shave an additional 2-5kb off my images without any loss of quality using SmushIt. When you&#8217;re loading ten or more images per page, that&#8217;s a significant savings.</p>
<p>In fact, I could compress my images quite a bit more if I were willing to make some trade-offs in image quality. I&#8217;m not in this case, but you might be able to. The best approach in my experience is to see what your overall image size is, run everything through SmushIt and, if you still aren&#8217;t happy with the results, go back to your image editor and see if you can compress things even more using lossy techniques.</p>
<h3>The Bad</h3>
<p>While I managed to squeeze down my images somewhat, for the most part I was already following the more obvious best practices &#8212; loading JavaScript last, using multiple domains and so on.</p>
<p>It wasn&#8217;t until I turned to my style sheets that I saw where I had really gone wrong.</p>
<p>Perhaps the most overlooked thing you can do to speed up your page is reduce the complexity of your style sheets. Wherever possible, use classes to group similar elements and make sure you take advantage of the cascade. If all your body text is going to be Georgia, define that rule once under the body tag rather than littering it throughout your style sheet.</p>
<p>Another thing you may notice Page Speed telling you to do is &#8220;<a href="http://code.google.com/speed/page-speed/docs/rendering.html#UseEfficientCSSSelectors">Use efficient CSS selectors</a>.&#8221; Browsers read CSS from right to left, so the more specific your selectors, the less time it takes the browser to figure out what to do with that element. The less specific the selector, the greater the number of nodes the browser needs to evaluate.</p>
<p>Consider this HTML, a fairly typical HTMl5 navigation menu:</p>
<p>
<pre class="brush: js">
&lt;nav id="top">
    &lt;ul>
        &lt;li>
            &lt;a href="/" title="My homepage">Home&lt;/a>
        &lt;/li>
        &lt;li>
            &lt;a href="/" title="My Blog">Blog&lt;/a>
        &lt;/li>
        &lt;li>
            &lt;a href="/" title="My Photos">Photos&lt;/a>
        &lt;/li>
    &lt;/ul>
&lt;/nav>
</pre>
<p>Now suppose you want to style the actual link element. The most inefficient way to do this would be something like this:</p>
<p>
<pre class="brush: js">
nav#top ul li a { color: red; }
</pre>
</p>
<p>In order to figure out which a you&#8217;re talking about, the browser needs to traverse four tags. Let&#8217;s redo that with something much more efficient:</p>
<p>
<pre class="brush: js">
&lt;h1>top a { color: red; }&lt;/h1>
</pre>
<p>Now there are just two tags to traverse. And note that we got rid of the <code>nav</code> selector with the ID, and the ID is already unique. There&#8217;s no need to add the tag as well.</p>
<p>If we wanted to be even more efficient, we could add a class called &#8220;red&#8221; to each of our <code>a</code> tags and simply do this:</p>
<p>
<pre class="brush: js">
.red {color: red;}
</pre>
<p>So how much does this gain you? In my case, re-writing my CSS &#8212; which had grown pretty sloppy over the years &#8212; dropped a full second from my page load time. That may not sound like much (and it isn&#8217;t if you have inefficient database queries or other, bigger problems), but when it comes to this stage of optimization, every little bit helps.</p>
<h3>The Ugly</h3>
<p>A few of YSlow and Page Speed&#8217;s suggestions aren&#8217;t possible in some cases, mine included. One big thing that could speed up my static content would be to use a CDN. Unfortunately CDN&#8217;s are expensive and outside the price range of small blogs like mine. Also, a shared server is cheaper than a dedicated server, but can be slower.</p>
<p>Other unfixable problems are due to my hosting setup. I can&#8217;t set the expires headers for my static files because my Nginx server is global for all shared hosts on that server. Luckily, with Nginx, the first load is pretty fast. The browser may not cache images and static files as aggressively as I&#8217;d like, but for now it works well enough. I could compile my own instance of Nginx, and thus set the expires headers myself, but I haven&#8217;t tried that yet.</p>
<p>Another problem that Google&#8217;s Page Speed tool likes to nag you about is using cookie-less domains for static images. In my case, I serve my static files from the subdomains <code>media</code> and <code>images</code>. Because my top-level domain needs cookies, the subdomains inherit them as well. This is why big sites like Yahoo use an entirely separate domain for static files (usually some subdomain of yimg.com in Yahoo&#8217;s case). </p>
<p>There are some other areas that didn&#8217;t apply in my case, but may be slowing down your site. One big culprit is third-party content. If you&#8217;re loading JavaScript from other sites &#8212; to add social networking or bookmarking buttons, for example &#8212; pay close attention to how fast those scripts load. They are notorious for slowing your page down.</p>
<p>Another easy way to speed up your pages is to make sure your CSS and JavaScript files are served using GZip compression. Good web hosts should offer a way to do this. If yours doesn&#8217;t, consider jumping ship for one that does.</p>
<p>As with any kind of optimization, there are trade-offs involved with nearly everything that YSlow and Page Speed will suggest. For example, to make your CSS selectors more efficient, you may be tempted to litter your HTML with IDs, which is a no-no if you&#8217;re trying to maintain good semantic code. Likewise, compressing images is all good and well, but turn them into a pixelated mess and you&#8217;ll turn people off no matter how fast your site is.</p>
<p>The secret to good optimization is to find a balance. Provide quality content and wrap it in well-written code, but also make sure what you create loads as fast as possible. Don&#8217;t sacrifice too much quality in the name of speed, and vice versa.</p>
<p><em>Illustration from &#8220;Physics for Entertainment&#8221; by Yakov Isidorovich Perelman from <a href="http://www.archive.org/details/physicsforentert035428mbp">Archive.org</a></em></p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2009/12/new_google_tools_help_speed_up_your_website/">New Google Tools Help Speed Up Your Website</a></li>
<li><a href="http://www.webmonkey.com/2008/03/tips_for_turning_your_sluggish_website_into_a_speed_demon/">Tips For Turning Your Sluggish Website Into a Speed Demon</a></li>
<li><a href="http://www.webmonkey.com/2010/02/Site_Optimization_Tutorial/">Site Optimization Tutorial</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/09/how-to-speed-up-your-site-with-yslow-and-page-speed/feed/</wfw:commentRss>
        <slash:comments>3</slash:comments>

        
    </item>
    </channel>
</rss>