Why is jQuery not integrated within the browser

前端 未结 7 1196
死守一世寂寞
死守一世寂寞 2020-12-06 16:20

Why isn\'t jQuery intergrated into browsers, so there would be no need to have to reference it on your site, and instead, the browser just notices the jQuery used, and every

7条回答
  •  难免孤独
    2020-12-06 16:32

    First, there's nothing special about JQuery - it's just a more human-friendly way to code JavaScript. It takes care of more cross-browser quirks, etc. so the developer doesn't have to think about it so much.

    That being said, JQuery follows ECMAScript standards, and so do browsers. IE is a stubborn one because it uses proprietary JScript not JavaScript.

    The browser shouldn't handle that burdon. Do you really want to go back to the days of bloated browsers that hog 500+mb of ram and take 10 seconds to open?

    On a final note, if Mozilla and Webkit just started including JQuery, it would probably piss off a lot of talented JavaScript devs who use Mootools, YUI, Dojo, etc.

提交回复
热议问题