On Mon, May 14, 2012 at 8:23 PM, Bill Keese wrote:

On Tue, May 15, 2012 at 8:58 AM, Kenneth G. Franqueiro <
kgf at dojotoolkit.org> wrote:
* Getting styles caught up in the module loader process throws any idea
of "styles before scripts" out the window.

Huh? I thought a CSS loader would fix this, not break it.

Right now in dijit, there's a race condition, occasionally seen on
webkit, where widgets can instantiate before styles have finished loading.
But with a CSS loader, all the CSS is guaranteed to be loaded before the
parser runs, because dojo.ready() will wait for both JS and CSS to finish
I don't think you'd get this for free. Wouldn't the CSS plugin require
extra logic to assure this, like polling or the image onload trick [1]?
But you may also want to trigger loading of a particular stylesheet
*without* waiting for it to load.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20120514/7d3e5329/attachment.htm

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 21 | next ›
Discussion Overview
groupdojo-contributors @
postedMay 14, '12 at 2:36p
activeMay 15, '12 at 9:25p



site design / logo © 2021 Grokbase