I check for console.log before using it, so I don't think that's it. My
guess is this is (yet another) race condition. I'll have to investigate.
If you want, I have a "div" version of console.log commented out in
control.js - you could comment that back in and do some debugging. But
I'll look at it in the next day or so.
Thanks.
-Steve
You might have to clear your cache.
-Steve
The idea with this example is what to do if you have 500K of JS that
takes a long time to parse & execute, but isn't needed to load the page
and in fact may never be used. The answer is to download the script but
delay parse&execution until the user needs the code. To simulate the
long time to parse&execute I put a 2 second execution delay in the code.
The code is executed when you click on the button so that's when the 2
second delay occurs. I think that's better than forcing a 2 second delay
that blocks page loading (esp. since the code may never be used). But I
completely agree with the blog post comments that a busy indicator would
be appropriate here.
Thanks for testing!
-Steve