{"id":5199391,"date":"2014-08-17T13:57:55","date_gmt":"2014-08-17T13:57:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/loading-scripts-only-on-singlephp\/"},"modified":"2016-08-22T00:34:03","modified_gmt":"2016-08-22T00:34:03","slug":"loading-scripts-only-on-singlephp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/loading-scripts-only-on-singlephp\/","title":{"rendered":"Loading scripts only on single.php"},"content":{"rendered":"<p>Hi! Firstly, thank you for a great plugin! <\/p>\n<p>How ever, I would like to load scripts only where needed; this case on single.php, where comments are.<br \/>\nI was able to do this on main site with <code>&lt;?php if (is_single()) { ?&gt;<\/code> -rule in the header, (I know, that&#8217;s not the most best way to do it), and all works fine. But with subdomains this does not work fully, cause I&#8217;m out of ideas, how to link correctly plugins ajaxurl.<\/p>\n<p>Any help would be really appreciated.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/safe-report-comments\/<\/p>\n","protected":false},"template":"","class_list":["post-5199391","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5199391","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\/5199391\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5199391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}