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

tv4.async vanilla implementation #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

tv4.async vanilla implementation #224

wants to merge 1 commit into from

Conversation

SamuelMarks
Copy link

PR isn't ready, just wanted to start the discussion.


Justification: Everyone has uses a different library for there project, e.g.: Angular, MooTools, JQuery. Rather than write one for each, let's just use vanilla JavaScript. Standards are (finally) supported on all browsers with sufficient conformance to enable this.

@sebilasse
Copy link

sebilasse commented Aug 9, 2016

It is a good idea to make the shipped async implementation dependency free.

However : We could keep the jQuery one because everyone can choose then.
What I did is an implementation based on the future of dojo : https://github.com/dojo/core (request).
Could also contribute it. Benefits:
• works also native in TypeScript projects
• works in node.js and browser, finds best transport
• works also for local file resolution (in node.js, tries to resolve relative pathes)
• can handle redirects
• is promise based if no callback provided (because we need promises)

@SamuelMarks
Copy link
Author

I do love TypeScript, sure thing write it up in a new patch 👍

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

Successfully merging this pull request may close these issues.

2 participants