Browser war centers on once-obscure JavaScript

 

Summary

news analysis All Microsoft's browser rivals are scrambling to speed up JavaScript, trying to get ahead as the Web expands into a foundation for programs.

Events

Social Media World Forum
22 - 23 Sep 2010

Suntec, Singapore

Governmentware 2010
28 - 30 Sep 2010

Suntec, Singapore

The 5th Annual CIO Forum Asia
28 Sep 2010

Singapore

IDC's Asia/Pacific Cloud Computing Conference 2010
31 Aug 2010

Marriott Hotel, Singapore

news analysis After inconspicuously lurking within Web sites' code 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 Web site 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.

Though IE lags all these rivals in JavaScript performance, Microsoft does care about performance overall and JavaScript performance specifically. Even as Microsoft launched a brand-new browser version, Internet Explorer 8, earlier this month, however, it's also clear the company has a big difference of opinion about the matter.

"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," said IE general manager Dean Hachamovitch 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's 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 IE 8 fared better overall than Firefox 3.0.5 and Chrome 1.0. A supporting slow-motion video (click "Case Study Videos, then Performance Testing) shows page-loading speeds down to the hundredth of a second.

Likely not coincidentally, though, Google offered its own propaganda the day before the IE 8 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 isn't the case for IE.

Browsing vs. running applications
Here's what the difference between the companies boils down to: Microsoft is focusing on today's Web, and the rivals are focusing on tomorrow's.

The Internet is growing from 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's among the biggest advocates of cloud computing, in which Internet-based applications and services replace those running natively on a personal computer.

On a recent SunSpider test of JavaScript performance, IE comes in last.

On a recent SunSpider test of JavaScript performance, IE comes in last.

(Credit: Stephen Shankland/CNET)

But Google Docs, Google Calendar, and Gmail aren't 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 IE 6 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."

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

To emphasize 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, Web site support.) Web applications also benefit from new technology arriving Web standards including HTML (Hypertext Markup Language) 5 and CSS (Cascading Style Sheets) 3. But JavaScript provides the programming language to join all those elements into a Web site that does something, not just shows something.

"All that is mediated by JavaScript. It's really the control structure of the Web," said Mozilla's Beltzner said.

A horse race
JavaScript didn't just catch on yesterday. Its popularity has been gradually building as programmers discovered how to use it to reproduce some of the interactivity of PC-based software in Web-based applications. For example, in Yahoo Mail, people can click on a message and drag it to a folder. Collectively, this higher-end JavaScript technology is called Ajax.

Microsoft's Internet Explorer remained the dominant browser in February 2009 but challengers have secured about a third of the market.

Microsoft's Internet Explorer remained the dominant browser in February 2009 but challengers have secured about a third of the market.

(Credit: Net Applications)

"A couple years ago, people started embracing new development models that were even more JavaScript-heavy than before," Beltzner said. "We were getting to a point where Web developers wanted to do more than the browsers could handle."

In 2008, the JavaScript engines started hogging the spotlight in browser advancement circles. In June came Squirrelfish from WebKit, then Squirrelfish Extreme in September. Firefox announced TraceMonkey in August. Google touted V8 with its release of Chrome in September. Opera in February announced its aspiration to beat them all with Carakan, and later that month Apple touted the JavaScript speed of its new Safari 4 beta version.

"It was WebKit I think that really ignited the competition," Beltzner said. "Having somebody else play along (gave us) a way of us questioning our own assumptions about whether we have done the best we can do." And Chrome is "certainly keeping the pressure on".

Microsoft defends its priorities. "We're certainly aware of what the other browsers are doing," said IE senior director Amy Barzdukas. "Browser makers need to be sensitive not just to the cutting edge but to people who use the Web."

JavaScript vs. Flash and Silverlight
Microsoft also has another answer for those who want to build elaborate Web applications: its Silverlight software, version 3 of which the company detailed Wednesday. Silverlight competes most directly with Adobe Systems' Flash, the dominant browser plug-in used to provide applications with a lot of pizzazz.

The current trajectory of JavaScript means that it's encroaching more on the turf of Silverlight, which uses Microsoft's C# programming language, and Flash, which uses a JavaScript relative called ActionScript.

"JavaScript in Chrome almost reaches the speed of Flash," said programmer Mr. Doob, who wrote Chrome Experiments called Ball Pool and Google Gravity, in a blog post about them recently.

In an interview, Mr. Doob--a Flash programmer who learned JavaScript just for the Chrome Experiments and declined to give his real name--said JavaScript is about three quarters Flash's speed. There are weaknesses, though. For one thing, he found JavaScript developer tools to be primitive. For another, JavaScript varies from one browser to the next.

"The main benefit of ActionScript is that it will look exactly the same in any browser and in any version of the browser, even on IE6! With JavaScript it depends on which features the browser supports so you would spend more time making sure the project looks good in all the browsers than actually developing the project," he said. To make his Chrome experiments work on other browsers, "I'll have to introduce some hacks which will slow down performance and will dramatically affect the user experience."

Typically, though, as programming technologies mature, they settle into standards and get more refined tools. For now, performance is the top priority--at least until JavaScript gets fast enough that other problems move to the fore.

"All it took was a little competition to get other companies focusing on this problem," Fisher said. At some point, "Suddenly this problem won't be a problem anymore and we can move on to the next issue."

This article was first published as a blog post on CNET News.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment
HP Data Protector delivers high-performance data protection at up to 70% lower TCO.
Tech Vendor: HP
Did you know?
Did you know?

ZDNet Asia Live

Brand new Google Instant: a search-as-you-type engine and Google SG will soon get a taste of it. See http://bit.ly/cm7kzy and @zdnetasia

#Force #Cloud S'pore: Social media trumps paid keyword ads: Microsoft aiming to hone CRM pitch: SAN FRANCISCO-... http://bit.ly/do6ECA #TCN

Iwebslog.com-Multi-task tricks of the Table Move handle in Word: Click or double-click the Table Move handle... http://dlvr.it/4xkZW #Excel

43 minutes ago by learnexcel on topsy

S'pore: Social media trumps paid keyword ads http://bit.ly/96gvyw

Microsoft aiming to hone CRM pitch: As it gears up to start testing a new version of its product, Redmond says it'... http://bit.ly/cCRyE6

10 things you should know about NoSQL databases: The relational database model has prevailed for deca... http://bit.ly/9kJeXc - #Asia #News

Multi-task tricks of the Table Move handle in Word: Click or double-click the Table Move handle to qu... http://bit.ly/b7UBPf - #Asia #News

Microsoft aiming to hone CRM pitch: SAN FRANCISCO--Microsoft is tired of seeing Salesforce.com get all the headlin... http://bit.ly/d6Uf6U

Microsoft aiming to hone CRM pitch: SAN FRANCISCO--Microsoft is tired of seeing Salesforce.com get all the headlin... http://bit.ly/9vsZxf

who would've thunk it?? increasingly important medium.. 'S'pore: Social media trumps paid keyword ads' - ZDNet Asia - http://bit.ly/axe88O

RT @zdnetasia: Oracle's Hurd for Phillips swap: What's the customer relations impact? http://ur1.ca/1jqms

Salesforce chief: Enterprise tech lacks innovation: Consumer tech makers such as Twitter are setting ... http://bit.ly/ca4KYi - #Asia #News

Adobe warns of zero-day hole in Reader, Acrobat: Critical vulnerability could allow an attacker to ta... http://bit.ly/bY9Xe6 - #Asia #News

Microsoft aiming to hone CRM pitch http://bit.ly/dn8jno

3 hours 42 minutes ago by superstarch on topsy

Link to the Dual Roles of the CIO: http://www.ciodashboard.com/cio-careers/cio-dual-roles/

12 hours 55 minutes ago by cbcurran on Boeing CIO: IT key to drive business growth

Here's another view of the dual roles of the CIO that I think is consistent. What we've found, however, is that only about 1 in 4 CIOs o...

12 hours 55 minutes ago by cbcurran on Boeing CIO: IT key to drive business growth

I agree with the author's sentiment in that Oracle seems to be set on a course to building an anti-open-source reputation. I don't agree ...

13 hours 59 minutes ago by sisto on Could Oracle fracture open source community?

Hi Rick, I like your point that there is a time and a place for automation, and that it can be quite effective when used properly. One su...

16 hours 19 minutes ago by XebiaLabs on Agile drivers for new project management tools

sorry for the double entry just a mistake

19 hours 31 minutes ago by notek on 5 ways to avoid removable media malware

Amazing and very informative blog one point i'd like to point out is that, for number 2 instead of completely restraining the use of remo...

19 hours 31 minutes ago by notek on 5 ways to avoid removable media malware

S'pore: Social media trumps paid keyword ads http://bit.ly/9Z7dNd

19 hours 49 minutes ago by lenwilton on topsy

Hi. My name is Philippe de Passorio, head of Total Immersion office in Apac. Since we have opened our subsidiary in Hong Kong 1 year ago,...

20 hours 34 minutes ago by philippe on APAC lags in augmented reality adoption

Haha, thought long and hard about how to phrase it... no worries, you owe me lunch then, ;)

23 hours 35 minutes ago by yedwin on Is M'sia's online world ready for free speech?

Nice post man. Looks like I don't have to write one on this now.

23 hours 57 minutes ago by davidlian on Is M'sia's online world ready for free speech?

The only reason Oracle has a leg to stand on here is that Sun didn't open source all of Java. The saw that Java as a desktop application...

1 day 39 minutes ago by txtechdog on Could Oracle fracture open source community?

I recently made some good experiences with CopyRight2 from Sys-Manage. You can download a trial version here: http://www.sys-manage.com/P...

1 day 17 minutes ago by JPatrick on Migrate shares from one Windows NT server to another

I have to disagree with the author's statement "If Oracle destroys OpenOffice and MySQL the Linux operating system would be left with, wh...

1 day 37 minutes ago by schumacr on Could Oracle fracture open source community?

Oracle may well kill OpenOffice and MySQL but the FOSS community has a better DB in PostgreSQL, and OOo will be forked to get out from un...

1 day 5 minutes ago by GreyGeek on Could Oracle fracture open source community?

sir want create my own accounting software but i dont know anythink abount the programing i try to improave my self with learn of some ex...

1 day 38 minutes ago by parveenidhi on Create a shortcut to a custom Word template