Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poll to ensure that element becomes a stylesheet #28

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

mixonic
Copy link
Contributor

@mixonic mixonic commented Dec 9, 2015

Under memory pressure or some other case, Chrome will fail to synchronously update the document.styleSheets list. This adds a polling step that confirms stylesheets are loaded correctly.

Fixes #27

Under memory pressure or some other case, Chrome will fail to
synchronously update the document.styleSheets list. This adds a polling
step that confirms stylesheets are loaded correctly.

Fixes adopted-ember-addons#27
@tomdale
Copy link

tomdale commented Dec 9, 2015

or some other case

Do you know what the other case(s) are?

@tim-evans
Copy link
Collaborator

I'm going to merge this, but would love to continue this conversation. I've seen this reported in another instance here: knownasilya/ember-plupload#46

Which seems to be directly related to this ticket (albeit written in a different library)

tim-evans added a commit that referenced this pull request Dec 9, 2015
Poll to ensure that element becomes a stylesheet
@tim-evans tim-evans merged commit 081f8a0 into adopted-ember-addons:master Dec 9, 2015
@mixonic mixonic deleted the async-stylesheets branch December 11, 2015 21:13
@@ -30,6 +25,34 @@ function injectAdobeBlank() {
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh, this should have a return true at the end or the polling will never stop.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants