{"id":18906379,"date":"2026-05-12T20:24:51","date_gmt":"2026-05-12T20:24:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-delay-script-execution-for-better-pagespeed\/"},"modified":"2026-05-12T20:24:51","modified_gmt":"2026-05-12T20:24:51","slug":"how-to-delay-script-execution-for-better-pagespeed","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-delay-script-execution-for-better-pagespeed\/","title":{"rendered":"How to delay script execution for better PageSpeed"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We are working on improving our Google PageSpeed Insights score and noticed that the PixelYourSite scripts are adding a significant amount of blocking time during the initial page load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is there a built-in feature or a recommended method to delay the execution of the pixel scripts by a few seconds (or defer them until user interaction) so they don&#8217;t block the initial rendering of the site?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-18906379","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18906379","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\/18906379\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18906379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}