In FF and all, my javascript works fine. But in Chrome it gives this message:
Resource interpreted as script but transferred with MIME type text/plai
In my case, the server was sending the correct Content-Type
but with an incorrect Content-Encoding
. Make sure that you only set Content-Encoding: gzip
for gzipped resources. Also, after I fixed the headers in the server (in my case, Google Cloud Storage), I had to wait a few minutes to properly reflect the changes due to caching.