Re: ReSpec and cross server loading

On 31/07/2013 16:03 , Shane McCarron wrote:
> So.... if respec is hosted on my private server because I am
> experimenting with some changes, and I hit it from a source hosted on
> ANOTHER server, the modules are requested as *.html.js instead of
> *.html.  What server-side magic did you do have to do to make this work?
>   I assume it wants to request the html as jsonp and 'source' it in or
> something.

I'm not sure what you're referring to here, but if you are trying to use 
a *non-built* version across domain boundaries then it won't work: we 
can load scripts, but we can't load data. Maybe RequireJS is trying to 
do something smart, but I don't know what.

It's really not meant to be used across domains without building it first.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Tuesday, 6 August 2013 10:56:37 UTC