Title: Toggle CommentCount.js &amp; LF DEBUG output
Last modified: August 22, 2016

---

# Toggle CommentCount.js & LF DEBUG output

 *  [rankhammer](https://wordpress.org/support/users/rankhammer/)
 * (@rankhammer)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/toggle-commentcountjs-lf-debug-output/)
 * I would like to be able to disable the CommentCount.js file and the output of
   the LF DEBUG code. I can comment it out in the code and it works fine, but feel
   it’s better handled through the actual plugin.
 * Also, the CommentCount.js doesn’t use the WordPress enqueue script functionality.
   This makes it difficult to control the code on my end without editing the plugin.
 *     ```
       if ( !is_single() ) {
                   echo '<script type="text/javascript" data-lf-domain="' . $network . '" id="ncomments_js" src="'.$this->lf_core->assets_url.'/wjs/v1.0/javascripts/CommentCount.js"></script>';
               }
       ```
   
 *     ```
       echo "\n";
               ?>
                   <!-- LF DEBUG
                   site-id: <?php echo $site_id . "\n"; ?>
                   article-id: <?php echo $article_id . "\n"; ?>
                   post-type: <?php echo $post_type . "\n"; ?>
                   comments-open: <?php echo comments_open() ? "true\n" : "false\n"; ?>
                   is-single: <?php echo is_single() ? "true\n" : "false\n"; ?>
                   display-posts: <?php echo $display_posts . "\n"; ?>
                   display-pages: <?php echo $display_pages . "\n"; ?>
                   -->
               <?php
       ```
   
 * [https://wordpress.org/plugins/livefyre-comments/](https://wordpress.org/plugins/livefyre-comments/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [rankhammer](https://wordpress.org/support/users/rankhammer/)
 * (@rankhammer)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/toggle-commentcountjs-lf-debug-output/#post-5859543)
 * Soooo, I take it there will be no change to this plugin to allow better control
   of how JavaScript loads with filters?
 * All plugins I use load JS the typical way, so I can include them in my gulp build
   to combine all scripts, except this plugin.

Viewing 1 replies (of 1 total)

The topic ‘Toggle CommentCount.js & LF DEBUG output’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/livefyre-comments.svg)
 * [Livefyre Comments 3](https://wordpress.org/plugins/livefyre-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/livefyre-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/livefyre-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/livefyre-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/livefyre-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/livefyre-comments/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [rankhammer](https://wordpress.org/support/users/rankhammer/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/toggle-commentcountjs-lf-debug-output/#post-5859543)
 * Status: not resolved