In the head of my HTML page, I have:
When I load the page in my browser (Google Chrome v 27.0.1453.116) and enable the developer tools, it says:
Refused to execute script from 'https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
Indeed, the script won't run. Why does Chrome think this is a plain text file? It clearly has a
.js file extension.
Since I'm using HTML5, I omitted the
type attribute, so I thought that might be causing the problem. So I added
<script> tag, and got the same result. I even tried
Then I tried changing it to
Finally I thought the periods in the filename might be throwing the browser off. So in my HTML code, I changed all the periods to the URL escape character
This still did not work. The only thing that truly works (i.e. the browser does not give an error and the JS successfully runs) is if I download the file, upload it to a local directory, and then change the
src value to the local file. I'd rather not do this since I'm trying to save space on my own website.