{"id":6871,"date":"2014-05-07T18:34:54","date_gmt":"2014-05-07T18:34:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/stop-joomla-1-5-loading-jquery-twice-collection-of-common-programming-errors\/"},"modified":"2014-05-07T18:34:54","modified_gmt":"2014-05-07T18:34:54","slug":"stop-joomla-1-5-loading-jquery-twice-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/stop-joomla-1-5-loading-jquery-twice-collection-of-common-programming-errors\/","title":{"rendered":"stop joomla 1.5 loading jquery twice-Collection of common programming errors"},"content":{"rendered":"<p>Use this javascript code\/\/\/<\/p>\n<pre>\nif (typeof jQuery == 'undefined') {   \n    var head = document.getElementsByTagName(\"head\")[0]; \n   script = document.createElement('script'); \n   script.id = 'jQuery'; \n   script.type = 'text\/javascript'; \n   script.src = 'js\/jquery.js'; \n   head.appendChild(script); \n} else { \n    \/\/ jQuery is loaded already need not include it...\n\n}\n<\/pre>\n<p>typeOf operator checks if the jQuery object already exists if it does not exist then create a script element and append it to head of the html.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use this javascript code\/\/\/ if (typeof jQuery == &#8216;undefined&#8217;) { var head = document.getElementsByTagName(&#8220;head&#8221;)[0]; script = document.createElement(&#8216;script&#8217;); script.id = &#8216;jQuery&#8217;; script.type = &#8216;text\/javascript&#8217;; script.src = &#8216;js\/jquery.js&#8217;; head.appendChild(script); } else { \/\/ jQuery is loaded already need not include it&#8230; } typeOf operator checks if the jQuery object already exists if it does not exist then [&hellip;]<\/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-6871","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6871","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=6871"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6871\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}