解决Ultimate Addons for Elementor插件慢的问题

解决Ultimate Addons for Elementor插件慢的问题

打开ultimate-elementor/classes/class-uael-core-plugin.php文件

在343行左右注释掉关于google的几个js文件加载命令

 wp_register_script( 'uael-google-maps-api', $url, array( 'jquery' ), UAEL_VER, true );

 wp_register_script( 'uael-google-maps-cluster', 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js', array( 'jquery' ), UAEL_VER, true );

 wp_register_script( 'uael-video-subscribe', 'https://apis.google.com/js/platform.js', array( 'jquery' ), UAEL_VER, true );

 wp_register_script( 'uael-google-login', 'https://apis.google.com/js/api:client.js', array( 'jquery' ), UAEL_VER, true );

wp_register_script( 'uael-google-recaptcha', 'https://www.google.com/recaptcha/api.js?onload=onLoadUAEReCaptcha&render=explicit', array( 'jquery', 'uael-registration' ), UAEL_VER, true );
原文链接:http://www.ae08.com/2023/03/28/%e8%a7%a3%e5%86%b3ultimate-addons-for-elementor%e6%8f%92%e4%bb%b6%e6%85%a2%e7%9a%84%e9%97%ae%e9%a2%98/,转载请注明出处。
0

评论0

请先
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录