diff --git a/wp-content/themes/dekart/functions.php b/wp-content/themes/dekart/functions.php index 4943984..4ec0817 100644 --- a/wp-content/themes/dekart/functions.php +++ b/wp-content/themes/dekart/functions.php @@ -3770,7 +3770,8 @@ function dekart_deferred_loader_script($blocks, int $timeout = 3000): string if (! $blocks) { return ''; } - $json = wp_json_encode($blocks, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); + // JSON_HEX_TAG: '' в сниппете иначе рвёт тег загрузчика → JS виден текстом + $json = wp_json_encode($blocks, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG); return ''; }