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

Callback firing multiple times, specifically Firefox #62

Closed
jeromystewart opened this issue May 13, 2015 · 4 comments
Closed

Callback firing multiple times, specifically Firefox #62

jeromystewart opened this issue May 13, 2015 · 4 comments

Comments

@jeromystewart
Copy link

Is this the intended behavior? I noticed that in chrome you get multiple network activity for the same stylesheet where only the last retrieves the stylesheet. I am guessing that this is intended and the "multiple tries" are how the asynchronicity is achieved.

I believe for this very same reason, firefox is calling the callback function multiple times.

Any insight?

@scottjehl
Copy link
Member

I’ve seen this happen when the CSS file does not have future expires headers set, for caching . Is that the case for you?

@jeromystewart
Copy link
Author

That is the case as I was using my nginx test environment when I discovered this. Great script thanks for sharing it and thank you for the response.

@scottjehl
Copy link
Member

cool - ok to close out then? lmk if not :)

@jeromystewart
Copy link
Author

Absolutely

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

No branches or pull requests

2 participants