tmcw / big

presentations for busy messy hackers

Home Page:https://glitch.com/~tmcw-big-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unresponsive Script at Line #21 returns for some slides

skorasaurus opened this issue · comments

Within my presentation - http://skorasaurus.github.io/hotatnacis2013
there are a couple occasions when the slide does not load after waiting for over a minute.

I haven't found anything in common among the slides besides that they all are images.
It does not hang on all images, only on some - specifically http://skorasaurus.github.io/hotatnacis2013#3 ; http://skorasaurus.github.io/hotatnacis2013#25 ; which are at: https://github.com/skorasaurus/hotatnacis2013/blob/gh-pages/index.html#L18 and https://github.com/skorasaurus/hotatnacis2013/blob/gh-pages/index.html#L67

I'll receive an error within firefox (24, ubuntu 12.04, 64bit) that says big.js is unresponsive, at line 21.
https://github.com/tmcw/big/blob/gh-pages/big.js#L21

The problem images are not the largest images either. I had no problems loading a 1.8mb gif, but a 1.3mb jpg and 600kb png are the troublesome images.

I've also tried chromium 28.0.1500.71-0ubuntu1.12.04.1 and have same problems.
I've also checked the console in the dev tools while loading these problem slides - no information appears there.

Lastly, I've also replicated this error locally and in my gh-pages branch - http://skorasaurus.github.io/hotatnacis2013

Basically that loop is trying to size down the slides until they fit - if adjusting the font size doesn't change the size of the contents in the slide, then it'll go infinitely. I've been split on whether to add some check in there to make sure that it never hangs like this, or whether it should just be a documented quirk.

This should be fixed with 5d9416a

I'm running into this now I think. I got the latest bits just now so I think it may still be an issue. You can see the preso onlne here: http://static.raymondcamden.com/presentations/levelupjs. At slide 6, it dies.

Ah for me it is line 9 I believe.

Any update on this?