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

get() should use no-cors mode #31

Closed
madeleineostoja opened this issue Sep 1, 2016 · 0 comments
Closed

get() should use no-cors mode #31

madeleineostoja opened this issue Sep 1, 2016 · 0 comments
Assignees
Milestone

Comments

@madeleineostoja
Copy link

Fetches made with Simpla.get() should use no-cors mode, which skips preflight header checks (which we don't need). Significantly increased network perf.


Current setup:

  • Average total time for 500 requests: 4062.3ms
  • Average time per request: 8.1ms

Using no-cors mode:

  • Average total time for 500 requests: 837.3ms
  • Average time per request: 1.7ms

Note: Until all elements are migrated to using the SDK then this won't have effect.

@madeleineostoja madeleineostoja added this to the Soon milestone Sep 1, 2016
@madeleineostoja madeleineostoja changed the title get() should use no-cors mode get() should use no-cors mode Sep 1, 2016
bedeoverend added a commit that referenced this issue Sep 27, 2016
Make sure get doesnt send Content-Type headers. fixes #31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants