Stay current with the Google CDN

The best way to stay current is to simply use Google's CDN. I covered this in Chapter 2, Working with jQuery in WordPress, and Appendix A, jQuery and WordPress Reference Guide, has a reference of this as well. There are additional advantages to loading up from Google's CDN instead for your project's hosted server. Instead of having to load JavaScript's, libraries and assets one by one from your server, your site can simultaneously load the main library from the Google CDN in addition to other local jQuery scripts and collateral. The bonus is that jQuery will be cached for users who've visited other sites that load it up from Google's CDN. Be sure to check out Appendix A, for a complete reference on wp_enque_script.

Was this article helpful?

0 0
Blogging For Business

Blogging For Business

Download this Guide And Discover How Start And Run Your Very Own Successful Business Blog. Always Wanted To Start Your Own Blog?

Get My Free Ebook


Post a comment