title: Implementing a fallback for gzip files in browser
body: <p>I am hosting gzip files on my server and sending them to the frontend.
  I want to implement a fallback so that if the browser does not accept gzip files / gzip files are not sent with the proper http headers (content-encoding: gzip), then I will just serve a regular inflated js file.</p>
  <p>The browser throws the following console error when a gzip file is sent without headers:<br />
  <code>Uncaught SyntaxError: Invalid or unexpected token</code></p>
  <p>How can I catch this error in the browser?</p>