jQuery: The Write Less, Do More JavaScript Library

Implementation of DOMContentLoaded failing when no assets

by Diego Perini :: Rate this Message:

Reply to Author | View in Thread



This is only an IE problem.

The "onload" event always fire before the "ready()" method in IE
when there are no assets (images/objects/styles) in the page.

I already new the implementation of IEContentLoaded in jQuery
was not complete, but I was told that the "onload" fall back will
always be a last resort solution so there would not have been
problems, the correct firing would have taken care of anyway.

I need to setup some more test to show the exact problem,
then I will submit the needed patch for this eventuality.

This may be somehow related to the problem posted in this group
about lazy loading jQuery. If the user does not setup a "ready()"
wrapped function, isReady will never become true.
I should reread that post though.


Diego Perini


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Development" group.
To post to this group, send email to jquery-dev@...
To unsubscribe from this group, send email to jquery-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Implementation of DOMContentLoaded failing when no assets

LightInTheBox - Buy quality products at wholesale price