{ claus.conrad }

Why don't browsers ship with jQuery?

📅 Mar 18, 2011
1 minute

This is really not so much a blog entry as it is a question... why don't browsers "ship" with jQuery and other common frameworks?

Years ago, browser vendors competed over JavaScript engine features, nowadays they compete over JavaScript engine performance. Thanks to cross-browser frameworks (with jQuery being the most prominent) features and compatibility are no longer an issue. Isn’t it time for browser vendors to compete on features such as pre-loading different JS framework versions and replacing remote loads of these with already cached versions?

In the meantime, I hope every web developer sticks to a CDN-hosted version of these libraries. The Google Libraries API is a well-known jQuery host by now, but Microsoft also hosts a couple of libraries for you at their ASP.NET CDN. Beware though that using one of these CDN’s just for one or two requests might result in yet another DNS query upon loading your site. To me, the caching advantage is worth it.