Title: Javascript Error Being Thrown
Last modified: September 1, 2016

---

# Javascript Error Being Thrown

 *  Resolved [kkathman](https://wordpress.org/support/users/kkathman/)
 * (@kkathman)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-being-thrown/)
 * I use a couple of site audit services for sites, and both reported today that
   your script has a js error. Here is the detail:
 * Uncaught ReferenceError: stLight is not defined
    Source file: [http://www.osha10hourtraining.com/wp-content/cache/autoptimize/js/autoptimize_420c6189ed475bda9acec522fd69b529.js](http://www.osha10hourtraining.com/wp-content/cache/autoptimize/js/autoptimize_420c6189ed475bda9acec522fd69b529.js)
   at line: 9, column: 686
 * Would you please investigate this? I checked the log for the site, and the only
   thing that’s been added is content, not any new plugins. This seems a little 
   weird that the error is coming from the cache subdirectory, but that’s the error.
 * Thank you!
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-being-thrown/#post-7539299)
 * the autoptimized JS file is just the aggregation of all your JS kkathman, [have a look at the FAQ](https://wordpress.org/plugins/autoptimize/faq/)
   on how to troubleshoot such problems.
 * hope this helps,
    frank
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-being-thrown/#post-7539525)
 * quick follow-up; I checked your site while temporarily disabling Autoptimize (
   by adding ?ao_noptimize=1 to the URL) and got the same error(s) actually;
 * >  ReferenceError: Mobile_redirect is not defined /:158:1
   >  ReferenceError: stLight
   > is not defined ssba.min.js:1:1273
 * so this is not something you’ll be able to fix following the AO troubleshooting
   guidelines, this will have to be fixed “upstream” (in the plugins responsible
   for that code).
 * frank

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

The topic ‘Javascript Error Being Thrown’ 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/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-being-thrown/#post-7539525)
 * Status: resolved