I'm seeing the same behaviour as in the related issue when viewing a node page with the Node JS integration module set up. The issue is being caused by the ajax_comments_nodejs_process_node() function which is checking whether a node being processed has open comments and is of an active Node JS comment type.

However, the nodes in question are being displayed as a view block of node teasers at the bottom of a page that does not have the comment form visible. Because of this, there is no comment form and no need to have the path white listed for node.js. Without the node.js, a JS error is triggered which then prevents other JS from running.

I'm wondering if the adding of the JS and CSS done in ajax_comments_nodejs_process_node() might be better done as a form alter of the comment form, so that the JS is only added when the comment form is visible on the page?

Comments

MrDaleSmith created an issue.