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

Refine logic to detect whether link exists already #70

Merged
merged 1 commit into from
Jan 25, 2018
Merged

Conversation

m-mujica
Copy link
Contributor

Chrome/Safari seem to wait until the link tag has finished loading to
add it to document.styleSheets and that causes the slim loader to
duplicate the link tag.

Using document.querySelectorAll works fine in the three browsers

I didn't have a failing test b/c I'd need to run it in chrome/safari, not sure
if that's worth doing.

Closes #64

Chrome/Safari seem to wait until the link tag has finished loading to
add it to `document.styleSheets` and that causes the slim loader to
duplicate the link tag.

Using `document.querySelectorAll` works fine in the three browsers

Closes #64
@matthewp
Copy link
Member

👍

@m-mujica m-mujica merged commit 3eeef49 into master Jan 25, 2018
@m-mujica m-mujica deleted the slim-href branch January 25, 2018 00:25
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.

2 participants