Title: Uncaught ReferenceError
Last modified: March 27, 2018

---

# Uncaught ReferenceError

 *  [gluecklichezwerge](https://wordpress.org/support/users/gluecklichezwerge/)
 * (@gluecklichezwerge)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-15/)
 * Hello,
 * hopefully I am in the right section.
    I am in the finishing process of a friends
   webshop. Currently I was working on page optimization and tried W3 Total Cache
   in combination with several online site checks to get an idea of what w3tc can
   do for me. Lots of my goals were achieved with short code snippets, therefore
   I decided to uninstall W3TC. Later I realized I have an error in console: Uncaught
   ReferenceError: r is not defined at (index):801 According to the fact I am a 
   coding beginner, I had my difficulties to dig into this, but now I think I have
   an idea. To allows the r character to be defined as the jQuery object, I need
   to add `(function($) {` to the top of code and `})(jQuery);` at the end of it.(
   Source: [http://www.thecreativedev.com/solutionuncaught-referenceerror-is-not-defined-in-wordpress/](http://www.thecreativedev.com/solutionuncaught-referenceerror-is-not-defined-in-wordpress/))
   But to which script do I add this? The site I am reffering to:
 * Any help is appreciated! Thanks a lot!
 * -Björn
    -  This topic was modified 8 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 8 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Removed redundant link
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-referenceerror-15%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Uncaught ReferenceError’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-15/)
 * Status: not resolved