Future releases of Firefox to speed page load time considerably?
Wed, Jan 20, 2010
Vote on HN
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.
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:184.108.40.206pre) 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:220.127.116.11) 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 :-
Load the target adscript from a separate HTML file loaded via iframe - costs one extra request/ad code, may screw up ad targeting, etc.
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:18.104.22.168pre) Gecko/20100116 Ubuntu/9.04 (jaunty) Shiretoko/3.5.8pre
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 TeamUPDATE 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.