Posts tagged with: javascript
View all postsSpeedy SquirrelFish on Safari
WebKit's new JavaScript interpreter may improve performance for the iPhone.
The Surfin' Safari blog announced SquirrelFish today, a new javascript interpreter for WebKit that is 1.6 times faster than the current interpreter. This is incredible, as Safari is already a super-fast browser, but as John Gruber points out in Daring Fireball, it may mean improved JavaScript support for the iPhone.
If you've read much of this blog, you already know my opinion about the whole "JavaScript on the iPhone really sucks" thing. I was recently reminded of this when translating some jQuery/JSONscripting from the Web to the iPhone. What ran as a fairly simple and speedy app on the Web became unusable on the iPhone, and I had to strip out tons of code to get even basic functions up to speed. Keep your fingers crossed that SquirrelFish makes it to the iPhone, and soon! I'm not sure if its release so close to the WWDC conference means it won't be making it to the upgraded "iPhone 2" that everyone is expecting to be announced, or if an iPhone software update will be released after the new iPhones hit the market. The sooner the better! The creators of SquirrelFish say this is just the beginning...
Read full article →Flash & iPhone Workaround
Use swfObject to "hide" accessible content behind your site's Flash pieces.

with your Flash, and changing the layout is as simple as adjusting the
with your style sheet. It detects Flash player versions and will help a user upgrade or install the Flash player "in-window" if necessary. It is a fantastic workaround for the annoying IE "Eolas patent dispute" requirement to "activate" Flash content by clicking it once before any buttons are active. And -- thanks to the way that...
Safari SDK Snafu
Was the failure of the Safari SDK anticipated by Apple?

The "dev kit" that Apple offers doesn't allow access to the phone's features. This was covered in my last post. Lack of access to the camera, microphone, speaker, alerts etc. hinder iPhone apps from being fully effective. MobileSafari's support for Web standards is subpar. The implementation of the Web standards that Apple touted as an application development platform are disappointing. Javascript behavior is slow and unreliable, and even some CSS properties do not behave according to the Web standards that Apple touted as the future of the iPhone.
This may have come as a surprise to Apple.As far as I know they have never said outright that the Safari browser and its Mobile counterpart can behave like two different animals, but as someone who spends a lot of time with both, I know it to be true. This is something that I had considered worth...