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的问题。有简单的解决方案吗? –