1
使用該函數排隊外部腳本是正確的嗎? 它的工作原理,但不會減緩打開網站?我應該使用wp_enqueue_script()來封裝外部腳本嗎
wp_register_script('google-maps', 'http://maps.googleapis.com/maps/api/js?sensor=true', null, null, true);
wp_register_script('jsapi', 'https://www.google.com/jsapi', null, null, true);
wp_register_script('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', null, null, true);
wp_register_script('unveil', get_template_directory_uri() . '/new-js/jquery.unveil.min.js', null, null, true);
感謝您的快速回答。我問過外部腳本減慢整個頁面的速度(阻止其他腳本)時遇到問題。我有facebook,地圖和bootstrap的問題。有簡單的解決方案嗎? –