Future releases of Firefox to speed page load time considerably?

January 20th, 2010 | by Sajal Kayan |

Living in Thailand has its fair share of disadvantages. The most prominent being bad internet and poor response times. In most cases, the packet shaping, caching and filtering mechanisms use by ISPs do more harm than good. A response from a US server may take anywhere between 100 to 1000 ms extra than it should (not counting the ping lag and server processing overhead, etc). These days, most websites integrate a lot of client side external scripts and APIs, lagging responses make for a horrible user experience.

Especially when within one ad code, I have a default ad code and that too has a default. This means, when an impression is trying to be filled, the ad network decides, if they can fill the impression based on parameters I set or not. If not, then they pass the impression down the chain to another network. It goes on until the end network. In my case the chain is mostly 3 networks. I cant increase it as it results in a poorer user experience.

Google Webmaster Tools

Recently, Google started showing average response times in Google Webmaster Tools so, Ive started worrying about these things more than I should.

On my site, I have 2 ad blocks(leaderboard, skyscraper and another block which shows up on individual story pages) which load up before the main content page. Recently I moved the ads to Google ad manager which has a wonderful way of debugging ad loading by adding ?google_debug to the end of the URL.

My first impression of Google ad manager was excellent. My page was no more held up while the ads loaded, but soon I realized thats not an admanager feature, it is firefox 3.5.8pre which is speeding things up.

Browsers Useragent : Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8pre) Gecko/20100116 Ubuntu/9.04 (jaunty) Shiretoko/3.5.8pre (Click image for full screenshot)

My tests on my laptop shows otherwise. (it runs 3.0.17).

Browsers Useragent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.16) Gecko/2009121601 Ubuntu/9.04 (jaunty) Firefox/3.0.17 (Click on image for full screenshot)

This does not speed up much on Chrome or IE too… They all show that the “Time the page is blocked fetching ads from Google” to range between 1000ms to 2500ms. The variation is irrelevant its due to network issues and ad server response times. But the bottom line is that these browsers do hold up the page while the ads load.

Maybe this is an improvement in the latest Ubuntu nightly build or a general improvement, whatever it is, the future is Firefox and they are fast!

So far, there has been no proper way to load ads such that they don’t block the rest of the page from loading. The 2 ways i know of are very ugly and I don’t like them :-

  1. Load the target adscript from a separate HTML file loaded via iframe - costs one extra request/ad code, may screw up ad targeting, etc.
  2. Place a blank hidden div in place of ad, load the ad in a hidden div below the actual content and then using javascript trickery swap contents of the hidden div with this ad div. - sounds ugly again. not a neat solution.

Of course there is a neat and ideal solution… which is to make your template in such a way(CSS absolute positioning or something) such that the HTML of the content appears before in the code than the ad javascript… but again this is cumbersome. Interesting discussion here.

In an ideal world, all ad networks would be banned from using document.write in their scripts and use some form of ajax to call the banner code after(or during) rest of the page has loaded. Its not 2001 anymore!

Here is what I request from you, open the following URL http://www.thaindian.com/newsportal/?google_debug then there should be 1 or 2 popups(maybe some browsers need to disable popup blocker). Look at the popup which resembles the screenshots above, and report your findings in the comments below. Be sure to wait for the main page to complete loading and don’t forget to include your full useragent. If you can upload screenshots somewhere then please drop their URLs in comments too.

The info i need, could be like the following example:-

User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8pre) Gecko/20100116 Ubuntu/9.04 (jaunty) Shiretoko/3.5.8pre
Debug: -
7342 Information Time the page is blocked fetching ads from Google 0 ms
7343 Information Time the page is blocked rendering ads from Google 0 ms

Your useragent can be checked here.

Video of pageload on Google Chrome:-

Video of pageload on Firefox 3.6pre(Ubuntu build):-

UPDATE: I upgraded my main browser to Firefox 3.6 (Your User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2pre) Gecko/20100120 Ubuntu/9.04 (jaunty) Namoroka/3.6pre) same results as 3.5.8pre its bloody fast and doesn’t stall the pageload waiting for ads.

UPDATE 2: Based on comment by Archit below, the speed improvement is not visible on 3.6rc2 . My conclusions are based on the nightly builds by the Ubuntu Mozilla Daily Build Team

UPDATE 3: Added videos

UPDATE 4: For my site I implemented the hidden div trick, so for now, all browsers will not notice the visual delay.

Sphere: Related Content

  1. 6 Responses to “Future releases of Firefox to speed page load time considerably?”

  2. By Archit on Jan 21, 2010 | Reply

    User Agent:
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6

    Debug:
    7342 Information Time the page is blocked fetching ads from Google 633 ms
    7343 Information Time the page is blocked rendering ads from Google 11 ms

  3. By Sajal Kayan on Jan 21, 2010 | Reply

    @Archit: Thanks for your debugging information.

    Clearly you are on Firefox 3.6 but don’t see the HUGE improvements I am seeing. It is probably limited to the Linux nightly builds then.

  4. By RandomGuy on Feb 12, 2010 | Reply

    BTW, seems google ad manager serves different html/js depending on the user agent string, meaning Firefox gets different code than Shireteko or Namoroka.

  5. By todd on Mar 3, 2010 | Reply

    our load time goes from the best to the worst to average…

    for rethai.com

    http://pattayadesignstudios.com/rethai/chart.png

    it really all depends on who has the plugin installed, where they are in the world, and where the server is…

    in our case, it would seem most of the time it’s users from outside of thailand looking at the site which is on a thai server.

    when it hit green, google’s data set came from thai users viewing the site in thailand…

    it all depends on who you’re trying to please and where all your customers come from, we know our site loads in 1 second for thai users. we’re deploying comwired global geoip routing soon and will be routing external (outside of thailand) users to a US server (syncronised content).

    basically for speed and a fall over in-case one goes down.

  6. By todd on Mar 3, 2010 | Reply

    another issue is google analytics and other google services like ad manager, since you’re in thailand and those services are on US servers, your average page load time will be slowed.

    you can speed this up a bit by using the newer asynchronous analytics code, there’s less overhead. you could also put the google ad blocks in iframes that are the same size. the iframe will load in 0 time, so the page will load fast, and the content in the iframe (the advert) will then start to load, a few seconds later or however long it takes.

    depending what you’re using to track that load time, it may still count the time as long, however for the end user, it’ll be faster. the page will render fast, the ads will load later.

  7. By Random visitor on Mar 8, 2010 | Reply

    Here’s what I’m getting:
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

    2185 Information Time the page is blocked fetching ads from Google 382 ms
    2185 Information Time the page is blocked rendering ads from Google 15 ms

    And this is from somewhere else:
    Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

    4541 Information Time the page is blocked fetching ads from Google 821 ms
    4542 Information Time the page is blocked rendering ads from Google 25 ms

    Both tests with a very good connection to the Internet.

Post a Comment