Title: Question on &#039;Exclude scripts from Autoptimize&#039;
Last modified: August 31, 2016

---

# Question on 'Exclude scripts from Autoptimize'

 *  Resolved [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/question-on-exclude-scripts-from-autoptimize/)
 * Trying to get ‘[Highlight Search Terms](https://wordpress.org/plugins/highlight-search-terms/description/)‘
   plugin to work with Autoptimize.
 * If ‘Optimize Javascript Code’ is off, the Highlight plugin works (search term
   is highlighted in results). If ‘Optimize Javascript Code’ is on, it does not 
   work (nothing is highlighted).
 * The Highlight plugin uses the file **hlst-extend.js**, so I added that to the‘
   Exclude scripts from Autoptimize’ and emptied cache. Still, nothing is highlighted
   after a search.
 * What am I not getting? 🙁
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/question-on-exclude-scripts-from-autoptimize/#post-7150876)
 * the two most plausible reasons; either hist-extend.js relies on jquery.js and/
   or it (also) relies on inline javascript. have a look at your browser’s (error)
   console what pops up there (e.g. jquery not defined points to jquery being required)
   and exclude accordingly.
 * hope this helps,
    frank
 *  Thread Starter [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/question-on-exclude-scripts-from-autoptimize/#post-7150883)
 * Hello, the jquery.js was the issue. I excluded that as well and now it works.
   🙂 Thank you. I just made another Kiva loan on behalf of this plugin.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/question-on-exclude-scripts-from-autoptimize/#post-7150963)
 * great John!

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

The topic ‘Question on 'Exclude scripts from Autoptimize'’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/question-on-exclude-scripts-from-autoptimize/#post-7150963)
 * Status: resolved