nathansmith/adapt — Issue #17: Problems with sizes due to delayed css insert
Author: ppowalowski
Created: 2012-03-06 23:43:36+00:00
State: open

Due to delayed css insertion the styles are not applied when other scripts start their work. Especially this causes positioning and offset stuff assuming the site beeing rendered correctly to break.
There should be added some sort of event for triggering stuff after inserted css is loaded.

Example:

offsetLeft = 0 before css is loaded
offsetLeft is > 0 after css is loaded

now when you rely on such a value while positioning elements you have to wait until the css is loaded. But how if there's no event or callback possibility? There should be some sort of "onAdapt".
Startet developing on basis of Dean Edwards custom event solution and ended messing up with IE < 8