DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Daily archives: Wednesday, February 2, 2011

Ajax Requested Page Return Only Content

Posted by on

I posted a little tip on CSS-Tricks the other day about how you can load only parts of other pages on a site via Ajax, and how to do that without needing additional HTML wrapping elements to keep it clean. A common criticism of this is that the Ajax request still loads the entire page, using all that bandwidth, it’s just that it only places onto the page the part you specify via CSS selector.

Code is poetry