All the paths needed for setting up a CDN are located in browser.py. I modified the file so that pyjs requests files from a different server. Works for images and javascript libraries, however, I get a cross domain problem for the generated HTML files. bootstrap.js loads these html files into a iframe, which is fine when the html originates from the same domain, but a a big security no no from different domains (i.e., CDN) that browsers block. Those html files are huge which is what I am trying to offload them from my microcontroller. At this point I have given up on CDN and pyjs -- since I think iframes are central to GWT as well? Any one else come to this same conclusion? I was originally hoping to create CDN build options -- but I don't really see the point now.
On Saturday, July 12, 2014 10:05:41 AM UTC-4, Grant Pitel wrote: > > Found a previous post on the topic. Looking into it... > https://groups.google.com/forum/#!topic/pyjamas-dev/GnkYbfKISvY > > > On Thursday, July 10, 2014 6:47:02 AM UTC-4, Grant Pitel wrote: >> >> I have a pyjs project that I can not fit on my server (its a >> microcontroller with 512kb of flash). My latest idea was have all the >> libraries and images hosted on an external server and the microcontroller >> would only server the basic html that includes bootstrap.js. Seems like >> setting hosted paths would be in pyjsbuild, but the only documentation >> <http://manpages.ubuntu.com/manpages/raring/man1/pyjsbuild.1.html> >> found on the topic does not mention it. Is changing from relative to >> absolute paths possible in pyjs? >> >> >> -- --- You received this message because you are subscribed to the Google Groups "Pyjs.org Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyjs-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.