A WordPress Multisite with Google blocked: before, half-fixed, fixed
A three-site test Multisite (International, US, Germany) with a small theme written to behave like the problem in the job post. Google's hosts are blocked in the test browser: jQuery fails, Maps hangs for 30 seconds and Tag Manager for 45 seconds.
This is a simulation, not a test from inside China, and not your theme. The company and content are fictional. It doesn't include WPML, Gravity Forms, Turnstile or Complianz.
As reported
The script stops at jQuery is not defined, so every section below the heading stays hidden. The load event took about 46 seconds.

Swapping the jQuery source isn't always enough
WordPress's own jQuery runs in noConflict mode. If the theme uses a global $, the error becomes $ is not a function and the page is still blank.

Fixed
Sections, menu and location pop-up work while Google is still blocked. The load event took about 1 second. The contact page shows a local map image.


The five changes
Each one is a separate snippet that can be switched off without touching the theme files.
Load jQuery from your own server
<?php
// Use WordPress's own jQuery instead of Google's copy. Undo: remove this snippet.
add_action( 'wp_enqueue_scripts', function () {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), null, true );
}, 100 );
Keep the global $ that older theme code expects
<?php
// WordPress's jQuery runs in noConflict mode. Give older theme code its global $ back.
// Undo: remove this snippet.
add_action( 'wp_enqueue_scripts', function () {
wp_add_inline_script( 'jquery-core', 'window.$ = window.$ || window.jQuery;' );
}, 101 );
Show content even if the animation script never starts
<?php
// If the animation script has not started after 3 seconds, show the content anyway.
// Undo: remove this snippet.
add_action( 'wp_head', function () {
echo "<style>html.aos-failed [data-aos]{opacity:1!important;transform:none!important}</style>\n";
echo "<noscript><style>[data-aos]{opacity:1!important;transform:none!important}</style></noscript>\n";
echo "<script>setTimeout(function(){if(!document.querySelector('.aos-init'))document.documentElement.className+=' aos-failed'},3000)</script>\n";
}, 99 );
Maps on the contact page only, with a static fallback
<?php
// Load Maps only on the contact page, without blocking it, with a local static image as fallback.
// Undo: remove this snippet.
add_action( 'wp_enqueue_scripts', function () {
wp_dequeue_script( 'google-maps' );
if ( ! is_page( 'contact' ) ) {
return;
}
$img = esc_url( home_url( '/wp-content/themes/sample-device/map-fallback.svg' ) );
$js = <<<JS
(function () {
var m = document.getElementById('map');
if (!m) return;
m.innerHTML = '<img src="$img" alt="Map showing our office location">';
window.sampleMapReady = function () {
m.innerHTML = '';
new google.maps.Map(m, { zoom: 12, center: { lat: 51, lng: 0 } });
};
window.addEventListener('load', function () {
var s = document.createElement('script');
s.async = true;
s.src = 'https://maps.googleapis.com/maps/api/js?key=DEMO&loading=async&callback=sampleMapReady';
document.head.appendChild(s);
});
})();
JS;
wp_add_inline_script( 'theme-main', $js );
}, 100 );
Start GTM after the page has loaded
<?php
// Start GTM after the page has loaded, so a blocked request cannot hold the load event.
// On a live site, check this against Complianz consent rules and tags that must fire early.
// Undo: remove this snippet.
add_action( 'after_setup_theme', function () {
remove_action( 'wp_head', 'sample_theme_gtm', 1 );
add_action( 'wp_head', function () {
echo "<script>window.dataLayer=window.dataLayer||[];window.addEventListener('load',function(){setTimeout(function(){dataLayer.push({'gtm.start':Date.now(),event:'gtm.js'});var j=document.createElement('script');j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id=GTM-DEMO';document.head.appendChild(j)},0)});</script>\n";
}, 1 );
}, 20 );
Results with Google blocked
All three sites, home and contact pages.
| Version | Site | Page | Sections visible after scrolling | Load event | Menu | Location pop-up | Map | Console errors |
|---|---|---|---|---|---|---|---|---|
| As reported | International | home | 0/4 | 46.0 s | fails | fails | jQuery is not defined | |
| As reported | International | contact | 0/1 | 46.0 s | fails | fails | empty box | jQuery is not defined |
| As reported | US | home | 0/4 | 46.0 s | fails | fails | jQuery is not defined | |
| As reported | US | contact | 0/1 | 46.0 s | fails | fails | empty box | jQuery is not defined |
| As reported | Germany | home | 0/4 | 46.0 s | fails | fails | jQuery is not defined | |
| As reported | Germany | contact | 0/1 | 45.9 s | fails | fails | empty box | jQuery is not defined |
| jQuery source swapped, nothing else | International | home | 0/4 | 46.0 s | fails | fails | $ is not a function | |
| jQuery source swapped, nothing else | International | contact | 0/1 | 46.0 s | fails | fails | empty box | $ is not a function |
| jQuery source swapped, nothing else | US | home | 0/4 | 46.0 s | fails | fails | $ is not a function | |
| jQuery source swapped, nothing else | US | contact | 0/1 | 45.9 s | fails | fails | empty box | $ is not a function |
| jQuery source swapped, nothing else | Germany | home | 0/4 | 46.1 s | fails | fails | $ is not a function | |
| jQuery source swapped, nothing else | Germany | contact | 0/1 | 46.0 s | fails | fails | empty box | $ is not a function |
| All five fixes | International | home | 4/4 | 1.0 s | works | works | none | |
| All five fixes | International | contact | 1/1 | 1.0 s | works | works | static image | none |
| All five fixes | US | home | 4/4 | 1.0 s | works | works | none | |
| All five fixes | US | contact | 1/1 | 1.0 s | works | works | static image | none |
| All five fixes | Germany | home | 4/4 | 1.0 s | works | works | none | |
| All five fixes | Germany | contact | 1/1 | 1.0 s | works | works | static image | none |
Not covered here: visitors who can reach Google (including the live map), Tag Manager tags and consent. On a real site those are tested on staging.