In this screenshot, merging is selected for the JS:https://snipboard.io/6y1O5R.jpg
As your site has http2 support, you should not have merging enabled as it will be making your site slower. You can check this with this website: https://tools.keycdn.com/http2-test
Here’s how to find the JS file that needs to be excluded
- Open Developer Tools. You do that either by right-clicking and choosing Inspect Element, or at the top of the window go to: View >> Developer >>Developer Tools
- Find the red error message indicator on the right-hand side
- Click it to open the Console, then click the file referenced in the error notice:
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdWbC4Y4QS1Agw45V3dQK1O3kE_zIWuqR1eNLS5G_AkISmXmRTqP93JhkMLZc26eAtTH7INGiseRJFSGRhOo905axnqx7ssOztrZab_CRCAF15Un2nBEucYnaEpdJDFuWUKSA5k_xADyeLcTe4D6Saf7FIt?key=lBvESvH2gwekRdQitRJxfA)
- This takes you directly to the code in the file that is related to the error. Look for the red underline and copy part of that code:
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3EPvgdH0Q7U8jhxA0t2e1zl1yWrhD34vYlwxK0-70CRm2yX8aSJrYN-H8_xR8MBtzmQUc1rQmbJMrq1n2uF3FAiXoP3H_cg2IlaQEs94xagKQa6sgH0tSwqomJZhW3e357PiLj0ordRtpdN9sDBuxPlOj?key=lBvESvH2gwekRdQitRJxfA)
- Open a new browser tab and load the un-cached version of the page. You will need to use an incognito window
- Open Developer Tools, then click the 3 dots on the right side and select Search All Files:
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc-iCc9vlXkTKElDQVa-pRJAwxurvwaqpApKpsNr9-5rDtkxIJEiQgBdIlM0fEeZdiX8q06ll2BZTST4k3fWxp53C8VcogzwPvNZ1IiQ4nA96tAjv91QieoJbmgCH69v7v7WTvgzs2QN1Gjq7Mf-xbGfok?key=lBvESvH2gwekRdQitRJxfA)
- Paste the problematic code in the search box and it will locate the file in which that code is found:
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-6DfPBOVsoxq_x5CJajxtMgA2Xh5H6M6BJgHQO0aGSrBA0LxZNc3WdwrAv3wpGR0cKjPawHCCi15uw0QJaC9CgLhZqXApMBh4AoQqAGGkLX4l6EapR4fPYv7-tUdMNSydxPUaCvzHDenF85ynZZBVxcDN?key=lBvESvH2gwekRdQitRJxfA)
- It’s not possible, unfortunately, to copy the filename from this screen. So to do that, click on the Network tab (reload the page if necessary to pull in the files). Then search for the file in the list:
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf04P61Xgtb7GORwA7dRD0f7UJZwvy-aw3oRGQjOXtdP06sNCOmYWh4dl8FZMhIes5br8v88FAkyiGxL4hTsSCDJQzLH6A5SS6q9LbdN8KSgK9WWCSf8Hl9kQKd5Q6vZca5aU6KxW5FCQ371OdMqDJYEaGz?key=lBvESvH2gwekRdQitRJxfA)
Once you’ve located the file, right-click on the filename, select Copy, then Copy Link Address to the exclusion list under Minify>> Javascript >> Exclude JavaScript from processing
After saving this you can visit your site again, reload the page and check that there are no more JavaScript errors reported in the console.