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

XDomainRequest - onload #90

Open
alanparsons opened this issue Dec 8, 2014 · 0 comments
Open

XDomainRequest - onload #90

alanparsons opened this issue Dec 8, 2014 · 0 comments

Comments

@alanparsons
Copy link

Not really an issue but just a different approach to something that cropped up.

I'm not sure if this is something someone else has already come across but I was trying to implement this and found it was having issues with XDomainRequest and was not returning any of the files content until I added the xhr.responseText inside a xhr.onload function. This however threw up other issues due to the files content only being sent back one the onload was finished which is far too slow for the current implementation.

I am not 100% sure if this is a an issue with XDomainRequest or because I was trying to fetch my CSS files from an S3 bucket.

I have however got this working to a degree here https://github.com/alanparsons/selectivizr
This will only work with one import within a file at the moment and not multi level imported files but it works for the scenario I encountered.

Hope this helps anyone else out.

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

No branches or pull requests

1 participant