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

WebApp: (Low priority) Maybe replace xmlhttprequest with the Fetch API? #3

Open
viktorsmari opened this issue Jun 3, 2018 · 0 comments

Comments

@viktorsmari
Copy link
Collaborator

viktorsmari commented Jun 3, 2018

We are using xmlhttprequest to talk to our kit API:
https://github.com/fablabbcn/smartcitizen-kit-20/blob/master/esp/data/main.js#L110-L128

Maybe there are some benefits of using the also built-in Fetch API instead of xmlHttp?

See pros vs cons here:
https://stackoverflow.com/questions/35549547/what-is-the-difference-between-the-fetch-api-and-xmlhttprequest

@viktorsmari viktorsmari changed the title WebApp setup: (Low priority) Maybe replace xmlhttprequest with the Fetch API? WebApp: (Low priority) Maybe replace xmlhttprequest with the Fetch API? Jun 3, 2018
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

1 participant