Slashdot Mirror


Google Shares Insights On Accelerating Web Sites

miller60 writes "The average web page takes 4.9 seconds to load and includes 320 KB of content, according to Google executive Urs Holzle. In his keynote at the O'Reilly Velocity conference on web performance, Holzle said that competition from Chrome has made Internet Explorer and Firefox faster. He also cited the potential for refinements to TCP, DNS, and SSL/TLS to make the web a much faster place, and cited compressing headers as a powerful performance booster. Holzle also noted that Google's ranking algorithm now includes a penalty for sites that load too slowly."

43 of 230 comments (clear)

  1. First Post! by Anonymous Coward · · Score: 2, Funny

    If only Slashdot loaded faster I could have had my first post!

  2. Ajax Libraries by 0100010001010011 · · Score: 3, Interesting

    Now if only every website didn't include 300kb of Javascript libraries that I had to download.

    1. Re:Ajax Libraries by Anonymous Coward · · Score: 2, Informative

      All modern browsers support caching, and chances are, you aren't actually downloading a brand new set of libraries each time.

    2. Re:Ajax Libraries by nappingcracker · · Score: 4, Insightful

      I disagree. Libraries have greatly improved the usability of many websites. I also doubt that many people are pulling down 300kb of libraries every time, since most are minified and gzipped. Even with a ton of bells and whistles it's hard to hit 100kb of .js, The ever popular jQuery + jQuery UI is only ~30kb (with reasonably useful plugins like tabs, dialog, etc, not all the crazy and expensive FX).

      I'm OK with users having to pull even 100kb one time to have a nicer browsing experience all around.

      I really wish I could get over my paranoia and link to the libraries on google's code CDN. Slim chance, but if they go down and my sites are still up, there be problems!

      --
      |plastic....or gasoline?|
    3. Re:Ajax Libraries by micheas · · Score: 2, Informative

      Frameworks are great but they are also overused.
      JQuery is fantastic if you're doing a big site that you want to feel like an app, but many people load JQuery just to do an image fade or animation - stuff that you can easily code yourself.

      To add insult to injury, sites made with Joomla, WP, Drupal, etc. often rely on plugins, which use their own libraries. The end result is a site that loads JQuery, Mootools and Scriptaculous just to do some trivial effects that would be achieved just as well with document.getElementById(), setTimeout() and the element.style property.

      The problem with doing things yourself instead of using a framework for common things like fades is that you have to remember how to code for each of the common browsers. The libraries hide that nastiness from you.

    4. Re:Ajax Libraries by delinear · · Score: 2, Insightful

      It also establishes a common method of implementing things - within an environment with more than one developer, it saves a lot of time if you're all building using the same framework rather than having to work out the nuances of each other's bespoke code all the time. For little throwaway projects the time saved in doing clever UI work and in maintenance thereafter in using a framework is massive. For bigger projects the gains are less, but as you mentioned, still worth it for creating a level browser playing field.

    5. Re:Ajax Libraries by clone53421 · · Score: 2, Insightful

      Clever enough, but using MD5 is still running the slight risk of collisions... of course if you verify that the content-length is the same size too, you’re reducing the risk of collision substantially.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
  3. Noscript by iYk6 · · Score: 4, Informative

    That's what noscript is for. With noscript, your browser doesn't even download the .js files.

    1. Re:Noscript by Saeed+al-Sahaf · · Score: 5, Insightful

      That's what noscript is for. With noscript, your browser doesn't even download the .js files.

      That's fine and dandy. IF.

      If you don't care to see or experience the vast majority of web sites on the Intertubes today.

      Honestly, when I see (yet another) pious elitist bleating about no-script or whatever, I wonder: Why don't you just surf in Lynx?

      If you're surfing with no-script, you're missing 75% of the Internet. If it's not the 75% you want to see and or experience, than good for you. But bleating about the creative uses of JavaScript on the World Wide Web is old news.

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    2. Re:Noscript by Dylan16807 · · Score: 5, Informative

      75%? When I turn off javascript it only seems to affect about a tenth of the sites I visit.

    3. Re:Noscript by Jurily · · Score: 5, Insightful

      If you're surfing with no-script, you're missing 75% of the Internet.

      Actually, it's more like 95%. However, you did completely miss the point. Turning off Noscript for a site you choose to bless takes two mouse clicks and a reload.

      You're not missing out on what you want to see. You're missing out on all the other random shit you couldn't care less about.

    4. Re:Noscript by calmofthestorm · · Score: 4, Insightful

      Likewise. And if I see flash it's a damn good indication I just don't care what's on the site.

      --
      93rd rule of Slashdot: No matter how obvious my sarcasm is, my comment will be taken seriously by someone.
    5. Re:Noscript by Anonymous Coward · · Score: 3, Insightful

      Or if you actually want to be able to use your [credit card/bank/net provider] site. The problem isn't what we, the users, allow or deny--the problem is the hubris of the programmers and web designers who want to stuff in all that bloatware, just because they can.

      Dear Web Site Designer:

      If your page takes more than a few seconds to load, your customer has moved on.

      If your search algorithm brings up even more pages when another term is added, your customer won't slog through the cruft

      If the pages is flashing and singing and offering 50 different subjects in 20 colours, your customer is confused and will not select anything.

      If your customer has to fight to find what they want and pay for it, they will go to a brick and mortar.

      If your reader wants to share a link or open it in another tab, finding out it is a script that can only be opened where it was found is annoying and likely to gain you some hostility.

      If there is any effort in reading and understanding what you published, they don't care how pertinent your subject is or how true your opinion.

      Oooo . . . shiiiinnnny does not a good web page make.

    6. Re:Noscript by EvanED · · Score: 2, Insightful

      A tenth? What Internet are you using?

      My my estimation based on the scroll bar position after counting for a while, I've got about 250 websites listed with site-specific preferences; some of those will just have plugins enabled so I can look at PDFs, but most are to enable JavaScript.

      They range from a couple dozen sites that I want to watch some Flash video on (enabling plugins but leaving JS off doesn't seem to work) to online stores (NewEgg and Best Buy both need JS for nearly essential features) to two of my banks (one of which doesn't actually need it I think, but it adds a few neat features; the other I think needs it) to some discussion-centric sites (even /. by default, but also things like Blogspot if you want to add comments) to the social networking sites to sites like this.

      I can't say for certain what percentage of the sites I visit I have whitelisted, but rarely does a day go by when I don't discover some new site to add.

    7. Re:Noscript by Anonymous Coward · · Score: 2, Funny

      Hey well looky here, we have 2 gramps in our midst.

      For that, not only am i going to stand on your lawn, i'm going to rip out grass in the shape of a stencil of goatse.

    8. Re:Noscript by drinkypoo · · Score: 3, Insightful

      You're not missing out on what you want to see. You're missing out on all the other random shit you couldn't care less about.

      Blocking stuff has taught me that there are some sites I just want to avoid. When I load a site and it not only requires Javascript to work when it's not using any dynamic features, and tries to dump scripts and cookies from a dozen known spammers on me, then I know I really don't need to view that content. Who cares if it was interesting? It's not THAT interesting.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  4. Hope they don't get to trigger happy by cameljockey91 · · Score: 2, Interesting

    How many times will their crawler check a slowly loading website before they penalizes it?

    --
    "Human kind cannot bear very much reality" ~T.S. Eliot
  5. I prefer low-tech solutions... by Lord_of_the_nerf · · Score: 5, Funny

    I find my browsing goes faster if I just yell at my housemate to stop downloading torrents that are *ahem* 'Barely Legal'.

    1. Re:I prefer low-tech solutions... by dintech · · Score: 3, Informative

      If you haven't already, get a router with QoS. Next, when he's in some other room 'maximising his bandwidth', set his max connections to 30 and his upload to 1/4 of your upload speed. You might also consider Tomato or DD-WRT if you have a compaitible router.

  6. google-analytics.com ? by corsec67 · · Score: 5, Insightful

    I saw my browser waiting on google-analytics.com quite often before I started using No-Script.

    Why do sites put up with an AD server/analytics service that slows down a site by a large amount?

    --
    If I have nothing to hide, don't search me
    1. Re:google-analytics.com ? by Anonymous Coward · · Score: 5, Insightful

      Because it's valuable data, and google is the only game in town. You can see which keywords are converting, and for what dollar amount, and which keywords are money pits. Yes, it will on occasion hang but you should look at the data that it produces before saying it's not worth it.

    2. Re:google-analytics.com ? by Spikeles · · Score: 3, Informative

      Googles' own documents recommend that you should use asynchronous tracking which should cause no page slowdowns, and even if you use the traditional code it should be at the at the end just before the closing body tag.

      If a page is loading slowly because of google-analytics, blame the web site developer.

      --
      I don't need to test my programs.. I have an error correcting modem.
    3. Re:google-analytics.com ? by dintech · · Score: 5, Insightful

      Yes, it will on occasion hang but you should look at the data that it produces before saying it's not worth it.

      Not worth it to who? It's not worth it to me. Noscript please.

  7. Re:java sites screwed by kainosnous · · Score: 3, Insightful

    This really begs the question of what it tries to load. If it simply loads the html, then JavaScript laden sites and Flash sites will have the edge over simple information sites that serve dynamic content. However, if they load all referenced content, then the reverse may be true.

    I would like it if the latter were true. What could be better than every Flash site being seen as a large bundle of data that simply displays "This site requires Flash". When I surf the web, I surf for content, not pretty pictures. In my opinion, if a site can't simultaniously be surfed in Lynx, read in Braille, and parsed with a spider, then it really isn't a web site.

    --
    There are 10 commandments: 01)Thou shalt love the Lord Thy God 10)Thou shalt love thy neighbour as thyself.Matt22:34-40
  8. How fast? by tpstigers · · Score: 4, Insightful

    Google's ranking algorithm now includes a penalty for sites that load too slowly.

    I'm not sure how I feel about this. My initial response was a happy one, but the more I think about it, the more it seems to be unnecessarily discriminating against those who are too far away from the bleeding edge. Do we really live in a world where 'Speed=Good' so completely that we need to penalize those who don't run fast enough? And where are we drawing the line between 'fast' and 'slow'?

    1. Re:How fast? by Wierdy1024 · · Score: 2, Insightful

      Yes, we should penalize them.

      Imagine there are two sites with the information I need. I would much prefer to see the faster site than the slower one, because by loading the faster site I get my information faster.

      If I wanted my information slowly, I would walk to the library...

  9. Re:java sites screwed by grahamsz · · Score: 2, Informative

    There's no inherent reason that Java should be slow. I run a discussion site (linked in my sig) that's running off an all-java codebase, and while it has occasional load issues. We can render the content for the front page of the site in 20 ms or less (it's at the bottom of the page if you are curious). Java has a proper application model, so with smart use of singletons you can effectively keep the entire working set of a forum site in memory. Our performance is much poorer if you start browsing through archives, but that makes up a tiny percentage of our page views.

  10. Penalty for speed by csmanoj · · Score: 3, Insightful

    That would make google search results bad right. When I search I want the site with the best information. Not the one that loads fastest.

    1. Re:Penalty for speed by Civil_Disobedient · · Score: 2, Insightful

      Seconded! Penalizing slow sites only promotes those shitty mirror sites that all seem to be on fast pipes.

      It's interesting: I've started noticing these spam sites creeping higher and higher up the page rank and was wondering what new trick the ad-spammers had developed to game Google. It would just figure that it turns out to be Google shooting themselves in the foot with asinine policies like this.

  11. NONONONONO by Magic5Ball · · Score: 3, Informative

    "He also cited the potential for refinements to TCP, DNS, and SSL/TLS to make the web a much faster place"

    The core Internet protocol and infrastructure was and remains a conduit of innovation /because/ it is agnostic to HTTP and all other protocols. Optimizing for one small subset of its protocols and for a single kind of contemporary usage would discourage all kinds of innovation using protocols we've not conceived yet, and would be the single largest setback the modern Internet has seen.

    --
    There are 1.1... kinds of people.
  12. Re:java sites screwed by Nadaka · · Score: 4, Informative

    java really really only has problems with startup time (that a web spider will never see) and the delay when a servlet|jsp is hit the first time. While doing web development, we see that startup and first load most of the time, giving an appearance of slowness, but it is much better on a production server with regular traffic.

  13. Most delay is ad-related. by Animats · · Score: 4, Informative

    Most real-world page load delay today seems to be associated with advertising. Merely loading the initial content usually isn't too bad, although "content-management systems" can make it much worse, as overloaded databases struggle to "customize" the content. "Web 2.0" wasn't a win; pulling in all those big CSS and JavaScript libraries doesn't help load times.

    We do some measurement in this area, as SiteTruth reads through sites trying to find a street address on each site rated. We never read more than 21 pages from a site, and for most sites, we can find a street address within 45 seconds, following links likely to lead to contact information. Only a few percent of sites go over 45 seconds for all those pages. Excessively slow sites tried recently include "directserv.org" (a link farm full of ads), "www.w3.org" (embarrassing), and "religioustolerance.org" (an underfunded nonprofit). We're not loading images, ads, Javascript, or CSS; that's pure page load delay. It's not that much of a problem, and we're seeing less of it than we did two years ago.

  14. Re:And how is speed relevant to the content? by Anonymous Coward · · Score: 3, Insightful

    Speed is relevant because crap mirror sites should be ranked lower than the originating site. [Or even vice versa, faster mirrors should be preferred over the original source]

    You seem to be under the delusion that Google is just going to delete slow sites, or return results purely on speed regardless of content. I have no idea what could lead you to think this way (well, I do "knee jerk reaction") because as far as I can tell, the most relevant site will be preferred but if there are multiple sites that are approximately all around the same relevance, the faster one is preferred.

    Sounds like an excellent idea to me, lord knows that I've been pissed off waiting 45 seconds for a page to load when the next result loads instantly with similar information.

  15. what about the other browsers? by SuperBanana · · Score: 2, Insightful

    Holzle said that competition from Chrome has made Internet Explorer and Firefox faster.

    Bull. Back when IE and Firefox's last major releases came out, Chrome was a tiny drop in the bucket market-share-wise. January was the first time it passed Safari in marketshare. I think it's more accurate to say that competition in general has led to companies improving their browsers. I'd bet we could also attribute the performance improvements to better standards compliance by websites, since there are now so many mainstream browsers.

    I'd say that Firefox vs IE competition (and Firefox vs Safari on the mac) have inspired the improvements...

  16. Measuring speed from *where* exactly? by buro9 · · Score: 5, Interesting

    Where are the measuring *from*?

    I've moved a site from Linode New Jersey to Linode London, UK because the target audience are in London ( http://www.lfgss.com/ ).

    However in Google Webmaster Tools the page load time increased, suggesting that the measurements are being calculated from US datacentres, even though for the target audience the speed increased and page load time decreased.

    I would like to see Google use the geographic target preference and to have the nearest datacentre to the target be the one that performs the measurement... or better still to have both a local and remote datacentre perform every measurement and then find a weighted time between them that might reflect real-world usage.

    Otherwise if I'm being sent the message that I am being penalised for not hosting close to a Google datacentre from where the measurements are calculated, then I will end up moving there in spite of the fact that this isn't the right thing for my users.

    1. Re:Measuring speed from *where* exactly? by Anonymous Coward · · Score: 5, Informative

      From the docs:

      "Page load time is the total time from the moment the user clicks on a link to your page until the time the entire page is loaded and displayed in a browser. It is collected directly from users who have installed the Google Toolbar and have enabled the optional PageRank feature."

      http://www.google.com/support/webmasters/bin/answer.py?answer=158541&hl=en

  17. That's not insightful by Per+Abrahamsen · · Score: 5, Informative

    Noscript doesn't turn off Javascript. Most browsers already have an option for that. What Noscript does is to make the control of Javascript (and Flash) much more fine grained and convenient.

    Some typical case:

    1. Scripts on poor web sites just serve to detract from the content. Those you simply never turn on.

    2. Scripts on good web sites improve access to content. Those sites you enable permanently first time you visit (press no Noscript button in the lower right corner, and select "enable permanently") and forget about it.

    3. Some web sites contain a mix of the two. Here you can either explicitly enable a specific object (by clicking on a placeholder, like with flashblock), or temporarily enable scripts for that site.

    Basically, Noscript makes more, not less, of the web accessible. The good web sites you use normally will not be affected (as they all will be allowed to run scripts). But following links from social web sites like /. become a much more pleasant experience.

    Of course, most of the noise scripts distacting from content are ads, so AdBlock gives you much of the same benefit. But I don't want to hide ads, as that is how the sites pay their bills.

  18. Re:java sites screwed by glwtta · · Score: 2, Insightful

    Right, because how could Java possibly hope to compete with the blazing speeds of PHP and Ruby?

    --
    sic transit gloria mundi
  19. Why not block ads if you don't click? by improfane · · Score: 4, Informative

    If you're not going to be clicking adverts, I am sure it costs nobody money. It just costs them bandwidth. The adworld is mostly CPC/PPC.

    Content websites seem to think that if I do not block an advert, I will actually click it. That is ridiculous!

    My principle is that advertising is like a bribe, they paid to put it in my face. That is a product I have no interest in. I will learn about products when I have a need for them.

    --
    Slashdot needs Geekcode | Can anyone recommend any good SCIFI? My tastes: Foundation, Startide Rising, CITY, Ringworld,
  20. Re:I feel happier with NoScript by delinear · · Score: 2, Interesting

    Wait, they put up a sign welcoming the whole world to come into their house, and then you're saying it's their moral right to then complain if you don't look at the ads on the walls of their house as payment? There was no contract or agreement in place prior to my entering their house, just an open invitation - if this is a pre-requisite they should display at the very least a click through agreement that this is the understanding. I say this as someone who doesn't disable ads (because I do support a free web and for me it's easy to just ignore ads, I mentally filter them out and if the site gets some benefit by my not physically filtering them out, all power to them), but unless you're making it part of an explicit contract that you will only allow free views in exchange for enabling ads you have no right to complain when someone follows a link to your site with adblock/noscript enabled. If you don't like it, don't accept incoming links, set up a login system and enforce a policy that accounts will be deleted if ads are disabled - then sit back and enjoy your very quiet life on the web...

  21. Re:I feel happier with NoScript by delinear · · Score: 2, Informative

    Actually you're dead wrong, because ads don't just track click-throughs, they can also track impressions. If I visit a site with an ad for product X, and then two days later I go buy product X, there is a model which will see the original site owner rewarded, even though there was a disjoint between me seeing the ad and buying the product. The amount will likely be much less than a direct click-through-purchase model, but nevertheless it recognises the cumulative effect of having seen the ad in a few places before deciding to purchase.

  22. It does not give them cash by improfane · · Score: 2, Insightful

    It doesn't give them money Dave, if I do not click an advert (click) and do not buy the product referenced in the advert (impression)...

    They get nothing.

    Are you a content producer by any chance?

    --
    Slashdot needs Geekcode | Can anyone recommend any good SCIFI? My tastes: Foundation, Startide Rising, CITY, Ringworld,
  23. Re:I feel happier with NoScript by clone53421 · · Score: 2, Informative

    It's people using AdBlock that cause sites to have annoying adverts in the first place.

    That is simply false. In fact, reality is exactly the opposite: It’s the sites having annoying adverts that cause people to use AdBlock in the first place.

    Annoying advertisements (particularly annoying, the blinking animated gif ones) have been around at least since when I was first starting to surf the web back in the days of Netscape Navigator 2. AdBlock was pretty much unheard of back then, which meant I had no choice but to look at Flash ads for fungal foot cremes on my Hotmail account.

    --
    Alexander Peter Kristopeit bought his basement from his mommy for one dollar.