Update Callback Behavior #21

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@raray

raray commented Oct 11, 2012

I modified the way the callback is handled to prevent it from firing before the new stylesheet is loaded by attaching it to the link element via .onload. "i" and "width" were made "global" to accommodate this.

It might be desirable to include a check to see whether the browser supports .onload for link elements, but it seems sufficiently well supported so I didn't bother.

Modified the way the callback is handled to prevent it from firing be…
…fore the new stylesheet is loaded by attaching it to the link element via .onload. "i" and "width" were made "global" to accomodate this.

@nathansmith nathansmith closed this Feb 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment