Some info while investigating.
Minification goes with errors as you mentioned because of script avia-compat.js
The reason – there is in start of script line: “use strict” with d/quotes. changed to s/quotes – also error in minified JS.
;'use strict'var avia_is_mobile=false;if
– Uncaught SyntaxError: Unexpected token var
Tried to delete – and there is no error. But it’s not OK to edit source JS (could be rewrited on update).
Now another js file makes error. going for further investigation ??
Interim conclusion: minification mechanism can’t work correctly with use strict
UPDATE: And of course found a lot of information where people say: “Don’t use “use strict” in minified versions of JS”
UPDATE 2: Is it possible to delete USE STRICT on minification process?