Title: ReferenceError and TypeError after activating Minify
Last modified: October 6, 2024

---

# ReferenceError and TypeError after activating Minify

 *  Resolved [dgrl](https://wordpress.org/support/users/dgrl/)
 * (@dgrl)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/)
 * Hi
   I would like to ask some help to get to know where these 2 errors are coming
   from?It came after enabling Minify[https://printablesdepot.com:1243:34](https://printablesdepot.com:1243:34)
   ReferenceError: LazyLoad is not defined at
 * [https://printablesdepot.com:1146:23](https://printablesdepot.com:1146:23) TypeError:
   $.each is not a function at 
   The numbers do not really point to anything usefull.
   Does any know where this is related to?Kind regads
    -  This topic was modified 1 year, 7 months ago by [dgrl](https://wordpress.org/support/users/dgrl/).

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058507)
 * Hello [@dgrl](https://wordpress.org/support/users/dgrl/)
 * Thank you for reaching out and I am happy to help!
   I’ve checked your website 
   and I do not see those errors in the console, however, I do see that the Minify
   currently is not enabled.Can you please share the screenshot of the Errors, and
   also the screenshot of the Performance>Minify section so I can check the settings?
   Are you experiencing any issue on the website regareding the performance?
 * Thanks!
 *  Thread Starter [dgrl](https://wordpress.org/support/users/dgrl/)
 * (@dgrl)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058683)
 * ![](https://i0.wp.com/snipboard.io/JYMCKW.jpg?ssl=1)
 * ![](https://i0.wp.com/snipboard.io/Q5BpAr.jpg?ssl=1)
 * ![](https://i0.wp.com/snipboard.io/NcywGB.jpg?ssl=1)
 * ![](https://i0.wp.com/snipboard.io/vBlDzc.jpg?ssl=1)
 * ![](https://i0.wp.com/snipboard.io/D5kKYx.jpg?ssl=1)
 * Here you have all info
   I just turned it on again..Kind regards
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058707)
 * Hello [@dgrl](https://wordpress.org/support/users/dgrl/)
 * Thank you for your feedback.
   So it seems that you are deferring minified JS both
   before </head> and after <body>. Can you please try to set those to Default (
   blocking) and see if the problem persists (Make sure to purge the cache after
   change)If the issue is gone, it means that some files need to be excluded from
   the process, like the /wp-content/plugins/w3-total-cache/pub/js/lazyload.min.
   js and the jQuery file.
 * Thanks!
 *  Thread Starter [dgrl](https://wordpress.org/support/users/dgrl/)
 * (@dgrl)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058772)
 * Hi
   Thanks for the answer This seems to solve the 2 errors yet it introduces 3
   new onesAny idea why this is popping up?
 * ![](https://i0.wp.com/snipboard.io/m86KR9.jpg?ssl=1)
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058787)
 * Hello [@dgrl](https://wordpress.org/support/users/dgrl/)
 * Yes, the answer is because those files need to be eliminated as render blocking.
   
   This being said, If you deffered the files and the only issue is the console 
   error while the website performance and usability is not impacted, you should
   keep doing it (previous state)
 * Alternatively, you need to exclude a specific file from being minified and deal
   with those files separately. 
   Those console errors in the original report does
   not mean that there is anything wrong with the website
 * Thanks!
 *  Thread Starter [dgrl](https://wordpress.org/support/users/dgrl/)
 * (@dgrl)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058805)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/)
 * Thanks for the help
   I will try different settings. As this is only happening 
   as soon as I turn Minify onKind regards

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

The topic ‘ReferenceError and TypeError after activating Minify’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [dgrl](https://wordpress.org/support/users/dgrl/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/referenceerror-and-typeerror/#post-18058805)
 * Status: resolved