array( // 'raw_vars' => $wp_query->query_vars, // 'vars' => json_encode($wp_query->query_vars), // everything about your loop is here // 'current_page' => get_query_var('paged') ? get_query_var('paged') : 1, // 'max_page' => $wp_query->max_num_pages, // ), 'site' => array( 'url' => site_url(), 'ajax' => admin_url('admin-ajax.php'), ), // 'translate' => array( // 'wl_add_text' => __("Added to the wish list", gV('slug')), // 'wl_remove_text' => __("Removed from the wish list", gV('slug')), // ), )); }); add_filter('script_loader_tag', function ($url) { // ?? Scripts loaded "defer" if (is_user_logged_in()) return $url; // don't break WP Admin if (FALSE === strpos($url, '.js')) return $url; if (strpos($url, 'jquery.js') || strpos($url, 'jquery-3.5.1.min.js')) return $url; return str_replace(' src', ' defer src', $url); });