如何使用 jquery(jQuery(document ).ready(function(){})) 禁用或洗掉此腳本的加載。在中國大陸無法加載,所以加載非常慢,我找到了這個元素的id。
<script type="text/javascript" src="https://apis.google.com/js/platform.js?ver=1641328563" id="eael-google-api-js"></script>
在此處輸入圖片說明
uj5u.com熱心網友回復:
只需將以下代碼復制并粘貼到您的functions.php 中,腳本就會被洗掉。
/* Remove unwanted plugin Javascript file */
function remove_eael_google_api_js() {
wp_dequeue_script( 'eael-google-api');
wp_deregister_script( 'eael-google-api');
}
add_action( 'wp_enqueue_scripts', 'remove_eael_google_api_js', 100);
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/403796.html
標籤:
下一篇:如何在欄位輸入中添加新的串列項?
