Active
Project:
Comments in a View
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2009 at 09:48 UTC
Updated:
28 Feb 2011 at 06:39 UTC
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
Comment #1
mikeytown2 commentedMain 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.
Comment #2
eaton commentedIt'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?
Comment #3
mikeytown2 commentedSure! let me know :)
When your dealing with millions of page views a month every bit counts.
Comment #4
BenK commentedSubscribing....
Comment #5
mark. commentedmikeytown2, how's the patch coming along?
Comment #6
mikeytown2 commentedsadly this is low on the totem pole for me
Comment #7
ghankstef commentedI 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.