diff --git a/advagg_mod/advagg_mod.module b/advagg_mod/advagg_mod.module index 0b34b46..61cc78b 100644 --- a/advagg_mod/advagg_mod.module +++ b/advagg_mod/advagg_mod.module @@ -2490,7 +2490,7 @@ function advagg_mod_js_async_defer(array &$js) { } // jquery_update fallback. if (module_exists('jquery_update') && variable_get('jquery_update_jquery_cdn', 'none') !== 'none') { - if ($use_on_error) { + if ($use_on_error && !empty($jquery_update_fallback)) { if (!isset($values['onerror'])) { $values['onerror'] = ''; }