Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

iOS 5 supports speedy Nitro JavaScript for full-screen Web apps

With the release of iOS 5 for the iPhone and iPad this fall, Apple will bring the Nitro JavaScript engine to full-screen Web applications saved to a user's home screen.

Currently, full-screen Web applications fail to use the Nitro acceleration Apple added to iOS 4.3. This can result in Web applications designed for the iPhone running much slower when saved to a home screen than they would if launched directly through the Mobile Safari browser.

But as highlighted on Thursday by CNet, the bug present in current version of iOS has been fixed in the first beta of iOS 5 delivered to developers. According to people familiar with the software, the feature in iOS 5 now has access to the Nitro JavaScript engine.

The fix was revealed by user "Xuzz" at Hacker News, who said that revealing the information was "probably" breaking their non-disclosure agreement with Apple. " now has the 'dynamic codesigning' entitlement, which enables Nitro," they said.

In a follow-up question, the user was asked about UIWebViews, which do not currently have Nitro benefits. "Xuzz" said that has not been added in iOS 5, but it's a security restriction.

"They can't give dynamic-codesigning to all apps, or their security (which taht disables, as a requirement to enable the JIT) would then be useless," they said.

SunSpider benchmark tests conducted earlier this year found that the Safari browser on the iPhone would run through code in 4.2 seconds. But a full-screen Web application saved to an iOS home screen would take more than twice as long — 10.2 seconds — to complete.

That's because full-screen Web applications, and native applications using UIWebView, use a different engine from Safari — an internal process called

The Nitro engine was first introduced in desktops in June of 2009 with the release of the Safari 4 Web browser. At the time, Apple boasted that Nitro could run JavaScript up to 4.5 times faster than its predecessor.

iOS 4.3 was released in March with the Nitro engine ported from the desktop, and making JavaScript performance twice as fast as it was in iOS 4.2.