{"id":18868064,"date":"2026-03-31T14:24:59","date_gmt":"2026-03-31T14:24:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/conditionally-enqueue-scripts\/"},"modified":"2026-03-31T14:24:59","modified_gmt":"2026-03-31T14:24:59","slug":"conditionally-enqueue-scripts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conditionally-enqueue-scripts\/","title":{"rendered":"Conditionally Enqueue Scripts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello, <br \/><br \/>I am trying to conditionally load the YMC scripts\/styles so that they only load on pages where the filter and grids are being used. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I didn\u2019t see a setting for this, but I did find the script handles. I noticed that the handles include numbers and letters at the end. Will these handles ever change?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Any guidance or clarification would be appreciated. Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-18868064","topic","type-topic","status-publish","hentry","topic-tag-optimization"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18868064","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\/18868064\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18868064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}