Title: Error Uncaught ReferenceError: eejs is not defined
Last modified: February 15, 2022

---

# Error Uncaught ReferenceError: eejs is not defined

 *  Resolved [pissenlit](https://wordpress.org/support/users/pissenlit/)
 * (@pissenlit)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/)
 * Hello,
 * I have an error message on the console of google chrome:
 * Uncaught ReferenceError: eejs is not defined
    at (index):384:5147
 *  I have searched, but it does not work. I enabled “Autoptimize is also active
   for logged in editors and administrators. Disable this option if you do not want
   Autoptimize to be enabled when you are logged in, for example when using a page.”
   but it only works for me, if the site is consulted by an Internet user, there
   is always this error…
 * Thanks for your aid !

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367353)
 * If you can share your site’s URL, I’ll be happy to have a look to tell you what
   JS needs to be excluded pissenlit 🙂
 *  Thread Starter [pissenlit](https://wordpress.org/support/users/pissenlit/)
 * (@pissenlit)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367364)
 * I would have liked to but my site is under construction, you have to be connected
   to the back office to see it… Can I send this to you by email?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367370)
 * Sharing backend [credentials is not permitted here](https://wordpress.org/support/guidelines/#the-bad-stuff)
   I’m afraid.
 * Maybe switch JS optimization to “don’t aggregate but defer” + “also defer inline
   JS” + remove default exclusions and try again?
 *  Thread Starter [pissenlit](https://wordpress.org/support/users/pissenlit/)
 * (@pissenlit)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367754)
 * OK great, I turned off: Aggregate all linked JS files to load without render 
   blocking, and it worked!
    Thank you very much !!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367765)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

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

The topic ‘Error Uncaught ReferenceError: eejs is not defined’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-uncaught-referenceerror-eejs-is-not-defined/#post-15367765)
 * Status: resolved