I just started using mod_pagespeed for my Centos Apache server, and I'm getting this error logged in Chrome for all of ONE site's pages. Another site I host with the same server is fine, so clearly it is a conflict with the one site's html/css/js.
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at I (/pagespeed_static/js_defer.I4cHjq6EEP.js:16:517)
at G (/pagespeed_static/js_defer.I4cHjq6EEP.js:14:486)
at HTMLScriptElement.b (/pagespeed_static/js_defer.I4cHjq6EEP.js:22:304)
Without diving into my site's code, does anyone have any idea what might be triggering this error? Or how to get a more detailed error message? I don't know what the node or child is, because the js_defer code has been minified and is impossible to follow. Any thoughts on how I can get more info on what it's trying to remove?
If I am using mod_pagespeed, should I remove all defer from script tags?
These are the filters I have enabled:
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedEnableFilters defer_javascript
ModPagespeedEnableFilters sprite_images
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters recompress_png
ModPagespeedEnableFilters convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments
ModPagespeedEnableFilters combine_css,combine_javascript
Thanks!