{"id":812,"date":"2013-01-10T13:13:54","date_gmt":"2013-01-10T13:13:54","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=812"},"modified":"2022-02-17T07:14:47","modified_gmt":"2022-02-17T07:14:47","slug":"include-javascript-file","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/include-javascript\/include-javascript-file","title":{"rendered":"Include javascript file"},"content":{"rendered":"<p>\n&nbsp;\n<\/p>\n<pre>\r\n<code>\r\n&lt;script src=&quot;conversations\/conversations.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<p>\nIf you are working with external documents be aware that the script tags on the external documents loaded via AJAX won&#39;t be executed unless the user is accessing the website from a page other than the home page, so everything should be declared in one JavaScript external file and linked from every document.\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &lt;script src=&quot;conversations\/conversations.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt; &nbsp; If you are working with external documents be aware that the script tags on the external documents loaded via AJAX won&#39;t be executed unless the user is accessing the website from a page other than the home page, so everything should be declared in one JavaScript external file and linked [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-include-javascript"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":6,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":1545,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/812\/revisions\/1545"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}