Skip to main content

Bug Tracker

Side navigation

#3636 closed bug (duplicate)

Opened November 23, 2008 08:07AM UTC

Closed January 17, 2009 07:06PM UTC

Last modified September 05, 2013 06:19PM UTC

$(document).ready() doesn't wait for CSS to load in Chrome

Reported by: nrabinowitz Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: chrome ready css Cc: nrabinowitz
Blocked by: Blocking:
Description

This may be the same bug as Ticket #3388 - when using the Google Chrome browser, $(document).ready() doesn't wait for external CSS files to load before firing. This is problematic if you're doing any page manipulation that relies on settings from external CSS files, and it can be difficult to identify and debug, especially on local files where the CSS loads quickly enough to avoid the problem.

Attachments (0)
Change History (4)

Changed November 25, 2008 11:39AM UTC by flesler comment:1

cc: → nrabinowitz
need: ReviewTest Case

Ok, can you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem.

Also, can you post to the jquery-dev group and ask for some feedback ? Please link to this ticket.

Changed January 17, 2009 07:06PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

This is a duplicate of #1319. Also, document.ready specifies that all css should be defined above scripts.

Changed November 29, 2011 07:30AM UTC by anonymous comment:3

Replying to [comment:2 dmethvin]:

This is a duplicate of #1319. Also, document.ready specifies that all css should be defined above scripts.

healthy food works well for me

Changed September 05, 2013 06:19PM UTC by anonymous comment:4

Handy piece of info people stumbling across this later might not have:

http://taitems.tumblr.com/post/780814952/document-ready-before-css-ready

using $(window).load waits for all css and images before firing.