Fixing the jQuery document ready ‘bug’ in Safari / WebKit

I was browsing the jQuery bug tracking system earlier, looking to see if there were any similar problems to those I was having regarding the document ready bug in Safari / WebKit.

I eventually came across ticket #3690, which explained an issue involving the incorrect calculation of dimensions if the stylesheet was included after the jQuery file.

The problem was discovered back in jQuery 1.2.6 and the resolution since set to ‘wontfix’, meaning that the outcome will more than likely be the same for ticket #5521 which is effectively a duplicate of #3690.

I guess it’s not much of a major bug with jQuery itself and the solution is a simple, but I do see it as an issue when you end up wasting a lot of time on something so unexpected.

Anyway – I will still continue to show my support for the jQuery library and have no problems in recommending it to anyone looking to use a JavaScript library to enhance their websites. :)

http://36flavours.com
/2010/01/jquery-document-ready-bug-in-safari-webkit/#more-623http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/#more-623

Leave a Reply