| From | Sent On | Attachments |
|---|---|---|
| Dave Methvin | Jun 25, 2007 7:02 am |
| Subject: | document.ready on Safari | |
|---|---|---|
| From: | Dave Methvin (dave...@gmail.com) | |
| Date: | Jun 25, 2007 7:02:53 am | |
| List: | com.googlegroups.jquery-dev | |
Hey guys, sorry I haven't been around much but I've been working on other projects. I am stuck in Bad C++ Code Hell at the moment. However, I did get some time to work on the splitter this weekend and I ran into some issues with Safari/Win. Has anyone else seen this?
http://dev.jquery.com/ticket/1319
The demo page is an older jQuery build, but it also happens on a build from SVN this morning. (BTW, Brandon, thanks for fixing those event bugs!)
I am a total Safari noob and don't know much about how to debug the problem in situ. Even if there was a script debugger for Safari, I doubt it would run on Windows which is all I have to work with at the moment.
As I mentioned in the ticket, the problem did seem to go away when I removed the good-sized chunk of special-case Safari code and just let it wait until document.onload to fire the ready handlers. Normally that would worry me, but this page seems to indicate that Safari fires onload much earlier than other browsers.
http://www.howtocreate.co.uk/safaribenchmarks.html
So it's hard to argue with a fix that makes jQuery smaller, right?





