kevinleary.net

Faster Speed in WordPress Using Google’s Hosted JavaScript Libraries

Use the Use Google Libraries plu­gin to replace all JavaScript libraries used in Word­Press with Google hosted libraries.

Why is Google a bet­ter option than self hosted?

  1. Auto­mated updates — Caching can be done cor­rectly, and once, by us… and devel­op­ers have to do nothing
  2. Gzip works
  3. Poten­tially the great­est ben­e­fit of using the Google AJAX Libraries CDN is that your users may not need to down­load jQuery at all. If they’ve vis­ited another site that was using Google’s jQuery, then it’s already stored in their browser cache.
  4. We can serve mini­fied ver­sions — The files are hosted by Google which has a dis­trib­uted CDN at var­i­ous points around the world, so the files are “close” to the user
  5. The servers are fast, and use a CDN to deliver files faster than your host prob­a­bly does.
  6. A sub­tle per­for­mance (and secu­rity) issue revolves around the head­ers that you send up and down. Since you are using a spe­cial domain (NOTE: not google.com!), no cook­ies or other ver­bose head­ers will be sent up, sav­ing pre­cious bytes.

More Resources

No Comments

No comments yet.

Leave a comment

will not be published

Wrap code blocks with <pre lang="LANGUAGE" line="1"> and </pre> where LANGUAGE is a GeSHi supported language syntax.