0.5 * 20 * (20 + 1)
--------------------- = 0.5 * 420 * 0.5 = 105 minutes
2
Which, after a couple hours, you can go ahead and reload the thread. Which if you want to see favorite counts update or have comment deletions reflected, you'll need to do in any case because we aren't dynamically updating the overall content of the page.$.get("/comments-latest.mefi?l=" + a.link_id + "&c=" + a.comment_id + "&d=" + a.diff_id + "&f=html", function (d) { $("#newcomments").append(d).show().trigger('mefi-ajaxcomment'); ...That way, greasemonkey script authors can just write:
$('#newcomments').live('mefi-ajaxcomment', function() { ... });...and their handler will get called each time new comments are appended so it can act accordingly to update whatever it needs to update. Without that there are probably still ways to do it; here's an example that works by overriding domManip to hook all element creation that happens through jQuery. But that's kind of ugly. The post also references the livequery plugin but I've read elsewhere that this has performance drawbacks since you're basically polling the DOM to see if something's changed.
yes this is a new feature here is the MetaTalk on it link, for at least the next two months.http://ask.metafilter.com/index.cfm?page=2. You can change the page number in the URL to go back and forth.
posted by cortex (staff) at 10:57 AM on February 2, 2011 [16 favorites]