Andrew from Blue Cross Blue Shield presented on AJAX. He showed us his concept of building a global jQuery handler using a Namespace. This would allow other programmers in the organization and himself to skip all the repetitive programming. Some examples included a predefined spinner object and a global AJAX error handler. He’ll post his example to the group and I’m sure I’ll benefit from it in my projects.
The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. This is where CDN’s (content delivery networks) come into place nicely. While your website is loading your content and images using only two parallel paths, a third path can be opened to load libraries such as jQuery, not to mention it may already be cached in the browser if they visited another site using the same CDN.
Break it up into multiple lines for better code organization using the + sign:
$('div').append('<ul>' + '<li>item1</li>' + '<li>item2</li>' + '<li>item3</li>' + '<li>item4</li>' + '<li>item5</li>' + '<li>item6</li>' + '</ul>');