Hi Dennis.
Regretfully, there is no such option to add that specific code to the script tag loaded through the Global or Element JavaScript, although you can try by adding the following code which will add the specific code into all of the ** scripts** that loads with the external JavaScript files.
if(!is_admin())
{
function add_asyncdefer_attribute($tag, $handle)
{
if ( FALSE === strpos( $url, '.js' ) ) return $tag;
if ( strpos( $url, 'jquery.js' ) ) return $tag;
return str_replace( 'script type="text/javascript" ', 'script data-wpfc-render="false" ', $tag );
}
add_filter('script_loader_tag', 'add_asyncdefer_attribute', 10, 2);
}
Remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.
Thanks