getify/LABjs — Issue #60: iOS5 issue with parallel load / execute serial
Author: elsigh
Created: 2012-01-03 21:55:19+00:00
State: open

I want to write a test case for this, but it'll take some time and I want to at least document the phenomenon.

We use queueScript to create an array of scripts which depend on being executed serially.

Using the debug version we can see that one of them gets skipped and also doesn't seem to ever load, despite being in the DOM - there is no Network request in the Inspector for it and there's also no endpoint logged request for it either.

Anyhow, execution goes past it and we get an error.

It's intermittent and inconsistent in where it errors in the stack. It happens in the iOS simulator and on a real iPhone with iOS5 as well - but NOT iOS4!

Thinking it must have something to do with async.