Code Monkey home page Code Monkey logo

Comments (11)

LeaVerou avatar LeaVerou commented on May 20, 2024

It doesn’t because then it would have to be a polyfill for the Fetch API, and it doesn’t quite follow it to the letter (mainly the object that is passed to the promise is different). Also, I’m not sure if the Fetch API is quite ready yet, at least with an XHR object there is a way to abort the request, which is still not possible with the Fetch API.
As a little historical background, $.fetch() evolved from the XHR helper I’ve been using for years. It just so happened that it was very similar to the Fetch API, but it was never intended as a polyfill for it. In any case, when the Fetch API is ready $.fetch() will likely become deprecated and then removed, unless it still offers some kind of syntactical convenience over it. But I won’t keep it around as a mere wrapper of the native API (or a polyfill), as that would be against the spirit of Bliss (which promotes polyfills over wrappers if the native API has decent usability).

from bliss.

LeaVerou avatar LeaVerou commented on May 20, 2024

That said, there’s no browser support table, because browser support depends a lot on choice of polyfills, if any. If all needed functionality is polyfilled, it should definitely work in at least IE9. If it doesn’t, I’d consider it a bug.

from bliss.

zdfs avatar zdfs commented on May 20, 2024

This sounds like a won't fix. Any objections.

from bliss.

LeaVerou avatar LeaVerou commented on May 20, 2024

Not exactly a wontfix. I wouldn't be opposed at all to an interactive browser support table, where one would check polyfills and it would update automatically! :D
But I’m not going to do it, as it's not a priority. If anyone thinks it's cool though, I will merge it and style it (i.e. whoever does it shouldn't worry about styling) :)

from bliss.

zdfs avatar zdfs commented on May 20, 2024

Any takers? I'll leave it open for awhile to see if we get any bites, and if not, will close it out.

from bliss.

kurtextrem avatar kurtextrem commented on May 20, 2024

So if I understood it correctly everything from IE9 is / should be supported?

from bliss.

LeaVerou avatar LeaVerou commented on May 20, 2024

With polyfills, yes.

from bliss.

TxHawks avatar TxHawks commented on May 20, 2024

Probably too much work to maintain something like this, but since Bliss promotes polyfills over wrappers, it could be super helpful if a browser support table was included next to each method in the docs, and a polyfill for supporting said method was suggested.

from bliss.

zdfs avatar zdfs commented on May 20, 2024

I'm not hearing a consensus on what people would like. I'm going to close this ticket out, but if anyone has a PR in the future addressing this problem, we'll be more than happy to take a look at it.

from bliss.

kurtextrem avatar kurtextrem commented on May 20, 2024

from bliss.

zdfs avatar zdfs commented on May 20, 2024

@kurtextrem - You're more than welcome to, feel free to make a PR.

from bliss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.