TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Weaning yourself off jQuery (2013)

3 pointsby mazewayover 10 years ago

1 comment

voidrover 10 years ago
&gt; As programmers build up applications up from lots of tiny components, if every component included a vendored jquery version, the total javascript size quickly baloons into multi-megabytes. When the jquery version gets pegged, version incompatibilities arise that likewise create redundancy issues. When the jquery version is left to float or its use is demanded externally in the documentation, this also does not scale well and makes it cumbersome and error-prone to use tiny pieces.<p>jQuery has a stable API, a clear migration path and a working compatibility layer. jQuery is well documented and well known, if you have an issue you can get help easily.<p>I don&#x27;t think the above are true for most small NPM modules.<p>The author blames jQuery for a deficiency of the NPM: If you have module A and B, which include the same version of module C, then C gets loaded twice. Not all useful modules can fit into a few kilobytes.<p>People are pretty quick to jump on the jQuery-hate bandwagon, the reality is: it&#x27;s still a great tool for building amazing applications.
评论 #8824029 未加载