How JavaScript became a browser-war battleground

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

ANALYSIS

After lurking inconspicuously within the code of websites for more than a decade, JavaScript has emerged to become a key battleground in a second era of web-browser wars.

JavaScript, which lets developers create everything from basic website menus to online spreadsheet applications, was born in the mid-1990s when Microsoft's Internet Explorer challenged the incumbent browser, Netscape's Navigator. IE won that war, but now it faces its own challenge from the heir to the Navigator throne, Mozilla's Firefox, along with upstarts including Google's Chrome, Apple's Safari and Opera.

All the challengers tout JavaScript performance as a major part of their competitive attack — even to the point of naming their JavaScript engines built into their browsers: Chrome's V8, Firefox's TraceMonkey, Opera's Futhark and upcoming Carakan and Safari's newly branded Nitro, which is Apple's version of WebKit's Squirrelfish.

Although IE lags behind all these rivals in JavaScript performance, Microsoft does care about performance overall and JavaScript performance specifically. The company launched a brand-new browser version, Internet Explorer 8, on Thursday. "We're going to keep making the script engines faster [but] right now it's not clear how many people are gated by script performance," IE general manager Dean Hachamovitch said in an interview. "JavaScript comprises a small portion of how fast a web page will render. It is a piece, but by no means the holy grail."

Because it is easy to measure, JavaScript performance has "become shorthand for browser performance", Hachamovitch added. Microsoft has begun touting its new test of page-loading speeds in which IE8 fared better overall than Firefox 3.0.5 and Chrome 1.0. A supporting slow-motion video (to view the video, click on Case Study Videos then Performance Testing) shows page-loading speeds down to the hundredth of a second.

Meanwhile, the day before the IE8 launch, Google launched its Chrome Experiments site to tout what can be done with high-performance JavaScript and to promote its browser. While Chrome generally runs sites' applications with aplomb, that is not the case for IE.

Browsing vs running applications
The difference between the companies seem to boil down to one difference: the fact Microsoft is focusing on today's web, and its rivals are focusing on tomorrow's.

The internet is growing from being a web made of static pages to be read with links to be clicked, into a web that also includes applications that perform computational tasks and that people interact with. In other words, browsers now have to process data as well as load pages. Microsoft's dominant share — 67 percent according to Net Applications' figures — reflects the more mainstream world, and the challengers are aiming for where they think the mainstream will be going.

"The faster we make JavaScript, the more interesting and interactive the web becomes," said Mike Beltzner, Mozilla's director of Firefox.

Google agrees. "We saw a lot of web developers lamenting the fact that they couldn't do what they wanted to do because JavaScript was a limiting factor," said Darin Fisher, a Chrome engineer at Google. It's certainly not the only bottleneck, but Google concluded that "by far the biggest performance opportunity we saw was to improve JavaScript".

Google has a direct interest in faster JavaScript. It is among the biggest advocates of cloud computing, in which internet-based applications and services replace those running natively on a personal computer.

But Google Docs, Google Calendar and Gmail are not rarities. Yahoo, Facebook and countless other sites make extensive use of JavaScript, and Microsoft itself is working to produce online versions of its Office suite.

AdventNet's Zoho division, which also offers web-based tools for word processing, spreadsheets and other tasks, is another company eager for faster JavaScript. Currently the company has to show a separate site with reduced abilities to people who use IE6 with the site, said Zoho chief executive Sridhar Vembu.

"We're excited because this represents a fundamental breakthrough in JavaScript performance and capability for applications like ours," Vembu said of the new generation of browsers. "Within a year I think we'll see such browsers dominating the landscape."

Vembu is also optimistic that Microsoft will close the JavaScript gap with its rivals. "I believe Microsoft will catch up," he said.

To emphasise only JavaScript for web applications is to oversimplify the situation. (And of course there are any number of other aspects of browser quality, including security, plug-in availability, operating-system support, user interface responsiveness and website support.) Web applications also benefit from...

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

subhorup

It simultaneously worries me and uplifts me that a self-proclaimed group of internet activists name themselves after Indian mythical figures....

6 hours ago by subhorup on Anonymous activists release PCAnywhere source code
naviathan

It's actually far easier to work anonymously on the internet than you think. With tools like Tor bouncing your traffic around the world before...

10 hours ago by naviathan on Anonymous activists release PCAnywhere source code
Agnostic_OS

1000272134 and bluedalmatian with you both there but then I'm still in 10.04 land (and happy with it)

10 hours ago by Agnostic_OS on Ten factors that make Ubuntu 11.10 a hit
apexwm

Interesting article and definitely see your points on the products mentioned. One of the top products for our Help Desk (approximately 20% of all...

17 hours ago by apexwm on Ten flawed products that derail productivity
Paul Hutchinson

Absolutely - this should obviously not be handled my isp - but handled by their hosting operator. What's been suggested here is that my isp police...

17 hours ago by Paul Hutchinson via Facebook on MPs urge ISPs to take down terrorist material
Techs UK

Looks like a great phone. I don't notice any deficiencies in WP7. used IOS before, that's pretty good. I don't spend much time in Apps, all i need...

20 hours ago by Techs UK on Nokia pins US 're-entry' hopes on Lumia 900
Larry Bloggy

Now with the help of these apps you are always synced with MS outlook while on the move. Just download apps like xobni or outlookreflex and get...

21 hours ago by Larry Bloggy via Facebook on Outlook Social Connector beta 2 and the LinkedIn connector
mike40g123

Your details are wrong. The version currently being made is the one with 2 USB ports, 256MB RAM and a network port. This is the Model B. The...

23 hours ago by mike40g123 on Raspberry Pi boards set to go on sale
Moley

The thing that has been puzzling me for quite a while is how Anonymous can remain anonymous whilst not only being active on the Internet but also...

2 days ago by Moley on Anonymous activists release PCAnywhere source code
Don Dilly

If what Semantec is saying is rue, that is even worse and shows a complete disregard for thier users. If what Anonymous claims is true and the...

2 days ago by Don Dilly via Facebook on Anonymous activists release PCAnywhere source code
MattChurchy

Didn't seem particularly biased to me either. Oh though you might have mentioned some other competitors with free search and email services...

2 days ago by MattChurchy on Time for an evil umpire: Google, Microsoft & privacy
Simon Bisson and Mary Branscombe

James - exactly as much as anyone paid you for your comment; I don't feel that I need to say that I'm independant and unbiased, but just for you...

2 days ago by Simon Bisson and Mary Branscombe on Time for an evil umpire: Google, Microsoft & privacy
Carl White

Once they realise symantec are willing to pay real money, they will simply keep extorting, unless of course symantec/authorities can use the...

2 days ago by Carl White via Facebook on Symantec offered hackers $50k in source code sting
Jonathan Hassell

You can find more information on BS 8878 by Jonathan Hassell its lead-author at http://www.hassellinclusion.com/bs8878/ The page includes a...

2 days ago by Jonathan Hassell on BSI publishes first British web accessibility standard
servermanagement

Thanks for this list. Now I know, what to include on my system to make it more functional.

2 days ago by servermanagement on Ten flawed products that derail productivity
1000092626

What if it's a 4 car household? The point is, more bandwidth = more things you can do simultaneously, like streaming HD video in one room of the...

2 days ago by 1000092626 on Virgin Media beats 100Mbps schedule, hikes prices
Gary Burton

No point whatsoever increasing broadband download speed. unless ever server on the net has access to massively up rated throughput. The worlds...

2 days ago by Gary Burton via Facebook on Virgin Media beats 100Mbps schedule, hikes prices
Random_Error

They're also increasing their TV package prices, whether to help fund this or not.

3 days ago by Random_Error on Virgin Media beats 100Mbps schedule, hikes prices
Techs UK

How can you set it up wrong to intermittently connect? Should I be asking for more pay? Outlook/Exchange is a breeze.

3 days ago by Techs UK on Ten flawed products that derail productivity
JamesCheese

And how much did Microsoft pay you for that article?

3 days ago by JamesCheese on Time for an evil umpire: Google, Microsoft & privacy