I am facing some weird issue with Magento 2.2.5 version. When I first-time open website, I am getting lots of js errors. (Screenshot attached)
After this, when I only press F5 button (normal refresh) then the errors are gone. Again I pressed Control+F5 (Hard refresh), facing the same errors in console.
I have tried clearing cache, static content deploy, merging JS/CSS, 777 folder permission on var/* and pub/* but no luck.