Reputation: 6852
When I try to include less.js
it gives me a XmlHttpRequest Exception 101.
I include the .less file like this:
<link rel="stylesheet/less" type="text/css" href="anything.less" />
Now, I'm working on a Tumblr theme, and this ONLY happens when I upload the theme to Tumblr. Both files are included correctly, I can reach the real files by clicking the links in the source code.
Can anyone help me with this one?
I used this for production only. It's very time consuming to compile the less file locally, embed it into the template and then upload it again.
Not a duplicate of:
LESS CSS minimal setup failure
I'm using Safari, and I'm using a global url (http://somelink.com/style.less).
Upvotes: 1
Views: 110
Reputation: 57928
You said:
The html file is then on www.tumblr.com, and the .less file is on themelandia.com
This means that less.js file must make a cross domain ajax request in order to retrieve your .less
file. Browsers do not allow this, and thus the request fails.
If you want to fix your problem, you must put the .less
file somewhere on tumblr.com
Upvotes: 1