Recently, I discovered the power of using Google’s AJAX libraries API. This is a content delivery network that delivers popular open source javascript frameworks using Google’s “stable, reliable, high speed, and globally available access“. Inside my CakePHP application, i simple added this on the header:
echo $javascript->link('http://www.google.com/jsapi');
echo $javascript->codeBlock("google.load('mootools', '1.2.1');");
It sure loads the mootools ‘core’ faster. Downside is that I need to manually include the ‘more’ library from mootools. I sure hope my hosting loads as fast as Google’s servers. LMAO
