Title: ReferenceError: N2R is not defined
Last modified: December 20, 2020

---

# ReferenceError: N2R is not defined

 *  Resolved [a223123131](https://wordpress.org/support/users/a223123131/)
 * (@a223123131)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/)
 * When checking my site with [https://web.dev](https://web.dev) I get shown the
   following error:
 * **_ReferenceError: N2R is not defined at [https://domain.com/:331:679](https://domain.com/:331:679)_**
 * N2R is comming from Smartslider3. How can I get rid of this error?

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

 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/#post-13813656)
 * Hi [@a223123131](https://wordpress.org/support/users/a223123131/),
    This error
   usually happens if your site has a plugin which tries to reorder inline JavaScript
   codes. The solution depends on the plugin which cause this error. I suggest you
   to try to make the plugin inactive which probably do this optimization and if
   the error gone, the best if you tell us which plugin was the cause.
 * In the past days, I have seen this error with WP Rocket, when the option “Load
   JavaScript deferred” was enabled. We have an unreleased fix for this, so let 
   me know if it is the cause and I will attach you an installer which should solve
   this.
 *  Thread Starter [a223123131](https://wordpress.org/support/users/a223123131/)
 * (@a223123131)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/#post-13813930)
 * Thanks for getting back so quick.
    You are right, deactivating WP Rocket and 
   the error is gone… but the option “Load JavaScript deferred” WASN’T enabled, 
   so it must be something else within WP Rocket
    -  This reply was modified 5 years, 5 months ago by [a223123131](https://wordpress.org/support/users/a223123131/).
 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/#post-13813956)
 * Here you can download the free installer which contains the fix. Could you give
   it a try to see if it helps?
    [https://www.dropbox.com/s/4ny8s826fjzv5b1/smart-slider3-wordpress-free.zip?dl=1](https://www.dropbox.com/s/4ny8s826fjzv5b1/smart-slider3-wordpress-free.zip?dl=1)
 * If it doesn’t or you have Smart Slider 3 Pro, please contact us on our support
   form: [https://smartslider3.com/contact-us/support/](https://smartslider3.com/contact-us/support/)
   
   Please send us all information there, for example WP Rocket version, export of
   WP Rocket settings, link to your site if you can. That could help us a lot debugging
   this issue.
 *  Thread Starter [a223123131](https://wordpress.org/support/users/a223123131/)
 * (@a223123131)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/#post-13814130)
 * Thanks, I will try it and get back if it is not solved

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

The topic ‘ReferenceError: N2R is not defined’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [a223123131](https://wordpress.org/support/users/a223123131/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-n2r-is-not-defined/#post-13814130)
 * Status: resolved