Hi @freemason,
I didn’t do anything specific for the “resources fail to load” issue, but after some time, it seemed to resolve itself naturally. I added some code to the functions.php
file of my WordPress theme. This code effectively removes the CDATA section from scripts. Here’s what I added:
// Remove CDATA section
function remove_cdata_script_wrapper($script) {
$script = str_replace("type='text/javascript' id='wpp-json'", "type='application/json' id='wpp-json'", $script);
$script = str_replace("/* <![CDATA[ */", "", $script);
$script = str_replace("/* ]]> */", "", $script);
return $script;
}
add_filter('script_loader_tag', 'remove_cdata_script_wrapper');
You can add this snippet directly to your theme’s functions.php
file. Just make sure to back up your site before making any changes, in case you need to revert them.
Let me know if you need more detailed instructions.
Best regards,