I have been trying, unsuccessfully, to get a HTML page to load an external GZIP compressed javascript file from the local filesystem using a HTML file such as this:
<html>
<head>
<script src="test.js.gz" type="text/javascript"></script>
</head>
<body></body>
</html>
When I open this HTML file directly in a browser, the Javascript file is not decompressed, but just included as-is. Since there is no webserver to tell the browser that the data is compressed, I was wondering if anyone knew of any other way of getting a setup such as this working? (the final result will not be running of a webserver).