File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1222,11 +1222,11 @@ function ecwid_get_scriptjs_code( $force_lang = null ) {
12221222 $ store_id = get_ecwid_store_id ();
12231223 $ params = ecwid_get_scriptjs_params ();
12241224
1225- $ code .= '<script data-cfasync="false" type="text/javascript " src="https:// ' . Ecwid_Config::get_scriptjs_domain () . '/script.js? ' . $ store_id . $ params . '"></script> ' ; //phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
1225+ $ code .= '<script data-cfasync="false" data-no-optimize="1 " src="https:// ' . Ecwid_Config::get_scriptjs_domain () . '/script.js? ' . $ store_id . $ params . '"></script> ' ; //phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
12261226 }
12271227
12281228 $ code .= ecwid_sso ();
1229- $ code .= '<script type="text/javascript ">if (typeof jQuery !== undefined && jQuery.mobile) { jQuery.mobile.hashListeningEnabled = false; jQuery.mobile.pushStateEnabled=false; }</script><!--/noptimize--> ' ;
1229+ $ code .= '<script data-cfasync="false" data-no-optimize="1 ">if (typeof jQuery !== undefined && jQuery.mobile) { jQuery.mobile.hashListeningEnabled = false; jQuery.mobile.pushStateEnabled=false; }</script><!--/noptimize--> ' ;
12301230
12311231 return apply_filters ( 'ecwid_scriptjs_code ' , $ code );
12321232}
You can’t perform that action at this time.
0 commit comments