Skip to content

Comment on You will probably need jQuery

Comments

Writing a library strictly to modern browsers and using conditionally loaded polyfills is the better choice, than building cross-browser into the library.

The former, over time more people load less code, as they move to the new browsers.

The latter, code doesn't decrease, but overall the amount of dead code increases, as people move to the new browsers.

That's the cause of all this criticism of JQ now.. Over time, more of JQ code becomes dead or unnecessary as these functions are subsumed into the native browser.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.