Yeah, it has happened to me several times (in Firefox). Resize can be called before bootstrap. My iPod was complaining about something being undefined in bootstrap, so I threw in this quickfix, hoping it would fix the problem.