4 ms·
>Are you are suggesting that they make a spec that implements API's that would conflict with 70%+ of the web and they deal with those conflicts by adding a `if
by tambourine_man 7y ago
>Are you are suggesting that they make a spec that implements API's that would conflict with 70%+ of the web and they deal with those conflicts by adding a `if (window.jQuery) return;` in all those calls?
Of course not. You can implement the same API without stealing its namespace. $$, sel, select, whatever.
>Are you in all seriousness saying that a native spec should account for a library?
If it's by far the most widely used one, one that changed the way we write web apps, and made viable a whole class of solutions, then of course. That's one of the main ways platforms grow. You see how people are using it and you make it even easier, faster.
What I'm saying is, we have a half arsed copy of jQuery when we could've had the real thing, only faster and builtin.
Instead of trying some ideas in a library/framework, iterating until polished, then considering making it official, we reinvented the wheal from scratch, only, unsurprisingly, worse.