Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Uncaught ReferenceError: jQuery is not defined in Move scripts to footer

$
0
0

Replies: 0

Hi all,

After I enabled Move scripts to footer it gives following error.

Uncaught ReferenceError: jQuery is not defined
    at (index):46
(anonymous) @ (index):46

When I go deeper, it shows following error.

        <script type="text/javascript">              
              jQuery(document).ready( function($) {    
                  if ($('#adsforwp-hidden-block').length == 0 ) {
                       $.getScript("https://www.mysite.com/front.js");
                  }
                 
              });
         </script>

Then I added /wp-includes/js/jquery/jquery.js to exclude list, but nothing happened.

  • This topic was modified 3 minutes ago by Bluemad.
  • This topic was modified 2 minutes ago by Bluemad.

Viewing all articles
Browse latest Browse all 59525

Trending Articles