Bizarrely, 50% of sites using alternative libraries such as MooTools or Prototype also load jQuery. I strongly suspect many of those have been rapidly developed using a plethora of plugins to apply cool effects. Concern for bandwidth or efficiency fall by the wayside; no wonder average page weights have peaked at 1Mb.
Finally, the statistics reveal that webmasters prefer their own hosting. 73.4% load jQuery from the local server. 94.2% of the remaining 26.6% sites put their trust in Google’s CDN.
Why has jQuery become so popular?
One reason is Content Management Systems and bootstrap libraries which include jQuery by default. More than one fifth of all websites are based on WordPress — most will load it.
You know what … none of that matters.
Complaints about jQuery mirror those leveled at PHP. Neither is recognized as being particularly ‘good’, but both get the job done quickly and effectively with the minimum of fuss. jQuery is lightweight. It’s extendible. It has great documentation. It has a huge following. Above all, it has a shallow learning curve and is easy to use.
Will jQuery continue its meteoric rise or is it becoming increasingly irrelevant as browsers evolve?
Craig is a freelance UK web consultant who built his first page for IE2.0 in 1995. Since that time he's been advocating standards, accessibility, and best-practice HTML5 techniques. He's created enterprise specifications, websites and online applications for companies and organisations including the UK Parliament, the European Parliament, the Department of Energy & Climate Change, Microsoft, and more. He's written more than 1,000 articles for SitePoint and you can find him @craigbuckler.