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

Localhost slow data loading #24

Closed
duncangeere opened this issue May 31, 2018 · 1 comment
Closed

Localhost slow data loading #24

duncangeere opened this issue May 31, 2018 · 1 comment

Comments

@duncangeere
Copy link

Hello! I've been having difficulty getting d3.csv() in D3v5 to work nicely on localhost in Chrome.

I've made a barebones example here that reproduces the error on both my Mac and Windows machines (latest OS version), in Chrome (latest release version).

When I first load the page, it takes some time before the data arrives. When I check the network tab on my dev tools, it shows up as "pending". It finally arrives after about 30-90 seconds.
image

When I run the same code through Github pages the error doesn't occur and the console.log happens fine. When I run the same code on localhost in Safari on my Mac, or Firefox on my Windows machine, the error doesn't occur and the console.log happens fine.

Don't hesitate to ask if I can do any further testing to help isolate the issue.

@mbostock
Copy link
Member

There’s really nothing in this library other than direct calls to the standard Fetch API, so I’m afraid I’m going to redirect you to Stack Overflow if you’d like help using Fetch and/or running a local web server.

For what it’s worth, using http-server, it took about 50ms to download line.csv on my machine.

image

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

No branches or pull requests

2 participants