Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Ensure CSS loading in-order #128

Open
guybedford opened this issue Mar 30, 2017 · 0 comments
Open

Ensure CSS loading in-order #128

guybedford opened this issue Mar 30, 2017 · 0 comments
Labels

Comments

@guybedford
Copy link
Member

The JS corresponding to the CSS load will always execute in the correct execution order of requires, so it should be possible to use this guarantee to ensure that the corresponding CSS files are arranged in the correct order.

This should be possible by gathering the style tags into two groups - currently loading, and loaded, which appear consecutively in the HEAD tag. The execution call would then move the style tag from the currently loading group and place it at the end of the loaded group, thus ensuring the correct style ordering.

Contributions very welcome here, otherwise will leave it up as a feature issue for the time being.

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

No branches or pull requests

1 participant