当我在 ChoicePlumbingOrlando.com 上运行 PageSpeed Insight 时,出现以下错误:
“ReferenceError:jQuery 未定义于 https://choiceplumbingorlando.com/wp-content/plugins/cf7-redirection/js/wpcf7-redirect-script.js:1:1”
我将以下内容添加到 function.php ...但每个页面上仍然出现这些错误。
// Disable Contact Form 7 Unless Called add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' );
解决了! 我能够停用该插件“联系表格 7 的重定向” (我没有添加这个插件,因此不知道)它解决了问题。
插件:联系表单 7 的重定向激活。
PageSpeed Insights 上生成错误:“CF7“ReferenceError:未定义 jQuery””