Title: window.addEvent is not a function
Last modified: August 31, 2016

---

# window.addEvent is not a function

 *  [yans_fied](https://wordpress.org/support/users/yans_fied/)
 * (@yans_fied)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/windowaddevent-is-not-a-function/)
 * I got error `Uncaught TypeError: window.addEvent is not a function`, I think 
   it’s the init order of the script since when i tried to run in onconsole it work
   perfectly.
 * Is there any settings i missed? and I use bwp-minifier by the way.
 * Here is the sample link: [http://www.ariona.net/mengenal-css3-viewport-unit/](http://www.ariona.net/mengenal-css3-viewport-unit/)
 * [https://wordpress.org/plugins/enlighter/](https://wordpress.org/plugins/enlighter/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/windowaddevent-is-not-a-function/#post-7293449)
 * Dear yans_fied,
 * it seems to be an issue with your additional minification.
    generally ALL enlighter
   related files (css, js) are already minified!
 * try to exclude them from your minification plugin and use the “inline” method
   for initialization.
 * best regards, Andi

Viewing 1 replies (of 1 total)

The topic ‘window.addEvent is not a function’ is closed to new replies.

 * ![](https://ps.w.org/enlighter/assets/icon-256x256.png?rev=1215872)
 * [Enlighter - Customizable Syntax Highlighter](https://wordpress.org/plugins/enlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/enlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enlighter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/windowaddevent-is-not-a-function/#post-7293449)
 * Status: not resolved