{"id":11824111,"date":"2019-08-12T12:44:08","date_gmt":"2019-08-12T12:44:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/referenceerror-4\/"},"modified":"2019-08-12T12:44:08","modified_gmt":"2019-08-12T12:44:08","slug":"referenceerror-4","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/referenceerror-4\/","title":{"rendered":"ReferenceError"},"content":{"rendered":"<p>Hello! Why might the error &#8220;ReferenceError: jQuery is not defined&#8221; appear? The line is &#8220;jQuery (document) .ready (function ($)&#8221;.<\/p>\n<pre><code>&lt;script &gt;              \njQuery(document).ready( function($) {    \n    if ($(&#039;#adsforwp-hidden-block&#039;).length == 0 ) {\n    $.getScript(&quot;https:\/\/site.ru\/front.js&quot;);\n    }\n                 \n});\n&lt;\/script&gt;<\/code><\/pre>\n<p>And another question, if I connect the ad code only for AMP pages or only on certain pages, how can I remove the plugin script output on all other pages where there are no ad units ?<\/p>\n","protected":false},"template":"","class_list":["post-11824111","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11824111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11824111\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11824111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}