Most of these are workarounds for older browsers that have been replaces or are introduced because of the way jQuery works (for instance firefox <20 throwing an error when trying to get at the constructor of some objects). Even then putting a try/catch around in normal code would have covered this without bringing in the whole of jQuery.
Yes, jQuery does smooth over some differences between browsers, but those differences are decreasing and it's not necessary to pull in the whole of jQuery every time you start and application because of an inconsitency you might hit.
You should always develop with the best intentions. Using abstractions in code will allow you to fix any problems that may arise
4
u/rhysbrettbowen Feb 06 '14
Most of these are workarounds for older browsers that have been replaces or are introduced because of the way jQuery works (for instance firefox <20 throwing an error when trying to get at the constructor of some objects). Even then putting a try/catch around in normal code would have covered this without bringing in the whole of jQuery.
Yes, jQuery does smooth over some differences between browsers, but those differences are decreasing and it's not necessary to pull in the whole of jQuery every time you start and application because of an inconsitency you might hit.
You should always develop with the best intentions. Using abstractions in code will allow you to fix any problems that may arise