Title: [Plugin: SyntaxHighlighter Evolved] Script Loads When Not Needed
Last modified: August 19, 2016

---

# [Plugin: SyntaxHighlighter Evolved] Script Loads When Not Needed

 *  [Brian](https://wordpress.org/support/users/galaxyfox/)
 * (@galaxyfox)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-script-loads-when-not-needed/)
 * The plugin’s scripts usually load only when its needed, however, the script seems
   to be loading on my site’s home page ([http://techairlines.com](http://techairlines.com)),
   even though since I’m using experts, no shortcode gets executed on the front 
   page. In addition, even on the excerpts, there’s nothing that requires the Syntax
   Highlighter code.
 * Is there a way to disable SyntaxHighlighter Evolved scripts to load on the index
   page?
 * [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-script-loads-when-not-needed/#post-1349346)
 * The shortcode is being executed, it’s just not being shown and there’s no way
   for my plugin to know that you’re using excerpts instead of full content.
 * Try adding this to your `footer.php` file, **before** `wp_footer()`:
 *     ```
       <?php
       if ( is_home() ) {
       	global $SyntaxHighlighter;
       	$SyntaxHighlighter->usedbrushes = array();
       }
       ?>
       ```
   
 *  Thread Starter [Brian](https://wordpress.org/support/users/galaxyfox/)
 * (@galaxyfox)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-script-loads-when-not-needed/#post-1349511)
 * It works perfectly. Thanks for the quick reply! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: SyntaxHighlighter Evolved] Script Loads When Not Needed’ is 
closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Brian](https://wordpress.org/support/users/galaxyfox/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-script-loads-when-not-needed/#post-1349511)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
