Could I use my ajax method of loading any block to load comments via ajax?

http://drupal.org/node/657826#comment-2372308
http://drupal.org/node/583264#whoonline

Comments

mikeytown2’s picture

Main idea here is the node's actual text doesn't change, the comments do. So if you could load the comments via ajax, caches of the node would be valid for a very long time. Trust me when I say this would be huge if this could be done.

eaton’s picture

It's definitely possible, though I haven't though through the potential complexities. It's worth noting that a Drupal bootstrap is required even for AJAX retrieval of small chunks of content, so it might not be THAT big of a boost.

I'd be interested in testing it -- would you be willing to attempt a patch?

mikeytown2’s picture

Sure! let me know :)

When your dealing with millions of page views a month every bit counts.

BenK’s picture

Subscribing....

mark.’s picture

mikeytown2, how's the patch coming along?

mikeytown2’s picture

sadly this is low on the totem pole for me

ghankstef’s picture

I think you can do this by just using a views ajax pager - one caveat is make sure views pager num comments per page and content type num comments per page are set to be the same so redirecting after a comment will go to the last page.