Why is jQuery not integrated within the browser

前端 未结 7 1165
死守一世寂寞
死守一世寂寞 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:45

    Fast forward to 2018: web browsers get updated pretty much on a monthly basis (except for Edge/IE which seem to be semi-annually which is still good). So the point about keeping up with the latest version is meh, considering jQuery has matured so much that people seldom use the latest/newest features right away, nor are there any serious bugs.

    In an era of high speed Internet and reduced size jQuery 3, plus browser caching and CDNs, downloading is not the argument here either.

    The main point people overlook is indeed the performance boost. Parsing/loading jQuery with EVERY... SINGLE... PAGE... is just not smart. Imagine how much easier it will be on lower-end mobile devices not having to parse it with every page load, etc. A native browser codebase implementation for jQuery's syntactic style to utilize JavaScript/ECMAScript is the goal -- and in my books, it's inevitable. A nice catalyst would be someone at Mozilla/Chromium community who has great power/influence + OOTB thinking + courage, (à la Steve Jobs), to make this a reality.

    0 讨论(0)
提交回复
热议问题