you are viewing a single comment's thread.

view the rest of the comments →

[–]C3P0 3 insightful - 2 fun3 insightful - 1 fun4 insightful - 2 fun -  (3 children)

I will never understand why novice developers include jQuery at the cost of 100 KB and an http request. All in order to write $("#some-id") rather than the more easily understood document.getElementById('some-id')

[–][deleted]  (2 children)

[deleted]

    [–]C3P0 4 insightful - 2 fun4 insightful - 1 fun5 insightful - 2 fun -  (1 child)

    It was supposed to be a polyfill to support all older browsers, but 99% of browsers now support things like setAnimationFrame, XMLHttpRequest, etc.

    A lot of designers argue that the browser caches jQuery anyways, but modern websites are concatenating all js files into one single file, so that 100 KB has to be redownloaded for everyone. Maybe I am too old, but I see beauty in saving bytes. To me, there is a big difference between if a website loads in 100 ms or 500 ms.