rootstrikers: yeah - that helped a lot. They also use angular templates (those html snippets) but instead of loading them with new http requests, their templates are all cached in a single minified file.
That will work for me too - I know what I have to do now. Thanks! I still think it's weird for librejs to be changing contents for requests like that (specially when they are made with ajax) - can anyone comment on that? On Wed, Oct 15, 2014 at 11:53 PM, Tony França <[email protected]> wrote: > Humm, I debugged it a little bit and I think I found the cause for my > particular problem: > librejs seems to be changing the contents of the response of http requests > that contain html code. > > My website uses AngularJS - and as such some snippets of html are > retrieved from the server at runtime. > One of such html files is called issuecards.html. > > This is what the browser receives from the server without librejs enabled: > > [Attachment: issuecards_html_without_librejs.png] > > And this is the same file retrieved with librejs enabled: > > [Attachment: issuecards_html_with_librejs.png] > > You can probably reproduce this behaviour by pointing firefox to: > > http://freedomsponsors.org/static/js/issuecards/issuecards.html > > Should librejs really be allowed to intercept and change http requests > like this? > What is the best way to fix this problem for my website? > > Note: I still didn't look at that rootstrikers. Will do very soon. Thanks! > > > > On Wed, Oct 15, 2014 at 6:35 PM, Nik Nyby <[email protected]> wrote: > >> Hi Tony, >> I'm glad you got the site working with web labels. >> >> >>> I'm guessing maybe librejs and AngularJS don't play too well? Is there >>> any known issue regarding about librejs and Angular? >>> >> >> rootstrikers.org is an AngularJS application that's working with >> LibreJS. You can see the source here: >> https://gitorious.org/rootstrikers-org/rootstrikers-org >> I think the Angular application is in the client/app directory. >> >> >> Nik >> > >
