{"id":419,"date":"2022-08-30T15:01:02","date_gmt":"2022-08-30T15:01:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/checking-for-references-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:01:02","modified_gmt":"2022-08-30T15:01:02","slug":"checking-for-references-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/checking-for-references-collection-of-common-programming-errors\/","title":{"rendered":"Checking for references-Collection of common programming errors"},"content":{"rendered":"<p>I have an external .js script. I want it to do one thing if the html file using it is referencing jQuery, and do another if it doesn&#8217;t. is this possible? Can I reference jQuery from my script to prevent this problem?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 19:12:03. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have an external .js script. I want it to do one thing if the html file using it is referencing jQuery, and do another if it doesn&#8217;t. is this possible? Can I reference jQuery from my script to prevent this problem? Originally posted 2013-11-09 19:12:03.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}