Dependent Origination

Don’t name your buttons ‘Go’.

Posted on: March 2, 2011

The iPhone app I wrote has annoyingly slow start on page animation on iOS 4.1. I started noticing it a couple days before launch and putting a few hours at least twice trying to figure out what is going on. By logging, I realize it is a webkitAnimationEnd event fired off very late. Today another person who is more familiar with webkit reminds me that also means the animationStart starts late too. And that made me realize it could be a bug on our own code, contrary to what I believed a few days ago, an iOS bug.

Well it is still an iOS bug since our app runs beautifully on 4.2 and up. But maybe I can make it disappear by checking into the DOM of our app. So I spent another few hours today starting from a single page and see when the slow start on animation happens, by just deleting DOM elements from the page. And I found it. It is a room search box. And then by using the same elimination technique, I realize it is because of the following HTML:

<input type=’submit’ value=’Go’ />

Removing the value makes the slow start on page animation disappear!

Can you believe it? I have no idea why a button named Go would cause such extensive damage. Apparently, it won’t for iOS 4.2 and up. So the moral of this story: don’t name your buttons ‘Go’.

Feels very good when you fix a persistent, annoying and previously thought cannot-be-fixed bug 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

March 2011
« Feb   Apr »


  • is reflecting on the past three years and reading the article on divided self aptly showing up at the top of my tweeter feed. 3 months ago
  • is having a nice feeling of connecting dots all over the place. they are now illuminating the same point. 4 months ago
  • Style Transfer is fun! TensorFlow rocks! #WTM17 6 months ago
  • couldn't get over the jetlag, sleeping during the day from seven to four, for days. 7 months ago
  • is emptying trash and happily discovering the available disk space now ranks at 100G+. 9 months ago

Flickr Photos

%d bloggers like this: