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

Jack Schofield

@openhgs Windows users have had multiple desktops since Linus started writing Linux. They just haven't shipped as standard because not enough...

57 minutes ago by Jack Schofield on Windows 8 could speed multi-monitor uptake
Jack Schofield

@Phil at Cloud4 What, Microsoft gets £1,200 per PC and £1,622 per server? Gosh, I'm amazed....

1 hour ago by Jack Schofield on 6 million wasted licences and £1,200 PCs: welcome to government IT
craigsc

You guys have no idea what is going on at Autonomy. Autonomy could have been a much more profitable organization. The sales operations at Autonomy...

3 hours ago by craigsc on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Moley

How does this impact on dual or multi booting? Seems to me to more or less prohibit this, from Windows 8 anyway. Will Grub 2 recognise Windows 8,...

3 hours ago by Moley on Windows 8 start-up speed forces USB boot workaround
apexwm

I don't understand why there cannot be a slight pause during the boot process so the user can press a key. Many operating systems do this, even if...

4 hours ago by apexwm on Windows 8 start-up speed forces USB boot workaround
Gavin Goodman

You can now buy the Xi3 modular computer in the UK at http://www.ocdistribution.com . This can be bought with the Tand3m software, pricing and...

5 hours ago by Gavin Goodman on CES 2012: Xi3 microSERV3R
Phil at Cloud4

I agree: Mike Lynch can clearly build a business and manage strategy. I suspect the exit of Mike is more likely the end of a planned handover...

8 hours ago by Phil at Cloud4 on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Phil at Cloud4

This is unbeleivable government wastage with only one winner... Microsoft 1 - Tax payer Nil!

8 hours ago by Phil at Cloud4 on 6 million wasted licences and £1,200 PCs: welcome to government IT
Mispam

So what do you do when you can't boot into windows? Why can't I just hold Shift while I power up instead of having to boot into windows and click a...

9 hours ago by Mispam on Windows 8 start-up speed forces USB boot workaround
apexwm

I've also seen that Mac OS X for Intel machines is supposed to run in VirtualBox, which would also be a nice solution. I've never tried it though.

10 hours ago by apexwm on xTreme Triple Booting: Linux, Mac & Windows
dave heasman

What I wonder is why when companies are caught bang to rights in not providing contracted services, people bend over to smear the customers? Surely...

11 hours ago by dave heasman on Virgin throttles broadband for high-speed customers
pjc158

Strange statement from HP regarding Mike Lynch and not capable of scaling a company. Autonomy was a $7bn purchase which started as a small company...

11 hours ago by pjc158 on HP cuts 27,000 staff as Autonomy chief Lynch leaves
lojolondon

Or - possibly, they will destroy business by ensuring people do not invest where there is no return. Another socialist idea, well beyond it's...

14 hours ago by lojolondon on Open Data Institute will act as biz incubator
J.A. Watson

Good stuff Jake, very interesting. Thanks. jw

15 hours ago by J.A. Watson on xTreme Triple Booting: Linux, Mac & Windows
openhgs

"the cost of a second LCD screen is about the same as one day of an office worker's time, so this should soon be recouped in extra productivity."...

16 hours ago by openhgs on Windows 8 could speed multi-monitor uptake
Thomas Gellhaus

I also installed the KDE version; I also will probably try out razorqt since I really haven't had a chance to before. I'm looking forward to the...

1 day ago by Thomas Gellhaus via Facebook on Mageia 2 Released
francisabigail

Acquiring when reinvention/cannibalization is too challenging for a large organization can be an excellent strategy- still, so many mergers stumble...

1 day ago by francisabigail on Ariba buy parks SAP on Oracle's cloud turf
apexwm

All of the feedback regarding using a touch monitor for a desktop PC is right on. Several months ago, we installed a "demo" multitouch all-in-one...

1 day ago by apexwm on Windows 8 could speed multi-monitor uptake
191706

anyone wanting to triple boot *their* own Mac

1 day ago by 191706 on xTreme Triple Booting: Linux, Mac & Windows
SoapyTablet

Cont.. Biggest Bugbear: Win7's stop-animate-go approach to work, you develop a staggered (not in the above alchohol sense of the word) approach to...

1 day ago by SoapyTablet on Windows 8 could speed multi-monitor uptake