Optimizing Ajax…

December 15th, 2006  |  Published in Blogroll, Code Development, HTML, JavaScript/AJAX

<

p>Notes from the Web Builder 2.0 Conference: “

AJAX Optimization

Scott Dietzen, President & CTO of Zimbra, Inc., talked about the three C’s of AJAX Optimization. They are:

  • Combine - When possible, merge images, css, and Javascript files together. When dealing with AJAX, fewer requests are best. Scott mentioned Two ANT tasks called Jammer and ImageMerge in the Kabuki AJAX framework that help you combine images and CSS. The result is that you get sprite images like this one from the Yahoo! home page that use CSS to display the proper section of the larger image. Yes, the CSS gets generated for you, too.
  • Compress - Use compression to save bandwidth and speed up downloads. Use JSMin or ShrinkSafe along with Apache’s mod_gzip.
  • Cache - Why bother re-requesting static data when the browser can cache? Use FireFox plugins like TamperData to make sure caching is happening like it should.

Good little tips, and things to check

(Via Zend Developer Zone.)

Leave a Response