Using original script it was causing errors after minification.
The reason was a missing declaration of variables in onreadystatechange callback.
So some variables were considered as global, but with minification (that restricts even the scope) they resulted as undefined
Using original script it was causing errors after minification. The reason was a missing declaration of variables in onreadystatechange callback. So some variables were considered as global, but with minification (that restricts even the scope) they resulted as undefined