Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: