With AdvAgg and AdvAgg Minify JavaScript enabled and minifying JS using JSqueeze, valid JS such as this:
const observer = new ResizeObserver(entries => {
for (let entry of entries) {
was causing console errors saying that "of is not defined" and which pointed to this minified JS:
for (let entry; of; entries) {
I see that JSqueeze has not been updated since 2016 (https://github.com/tchwork/jsqueeze), so this is not surprising.
Changing to JShrink (which was updated as recently as Sept 2021) eliminated the problem.
At the very least, be warned that using JSqueeze could cause problems for you. At the most, the maintainer might think of removing JSqueeze as an option.
Comments
Comment #2
xamountUpdating this to critical because it can break certain JS aspects of your site. I also ended up falling back to JShrink