{"id":16066456,"date":"2022-10-03T23:28:37","date_gmt":"2022-10-03T23:28:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-performance-13\/"},"modified":"2022-10-03T23:28:37","modified_gmt":"2022-10-03T23:28:37","slug":"plugin-performance-13","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-performance-13\/","title":{"rendered":"Plugin Performance"},"content":{"rendered":"<p>This plugin injects a JavaScript file wpcf7-redirect-script.js on every page load of the site when installed.  The script itself is small, but when this script isn&#8217;t required on 99% of the site couldn&#8217;t it only be loaded on pages where you actually have a Contact Form 7 on the page to reduce the overhead of a seperate HTTP get for this additional JavaScript when it isn&#8217;t needed.<\/p>\n<p>One way to do this might be to have a checkbox in the page editor something like &#8216;Use Contact Form 7 Redirection&#8217; and only pages that have it selected will pull down the additional JavaScript to do the redirection.<\/p>\n","protected":false},"template":"","class_list":["post-16066456","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16066456","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\/16066456\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16066456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}