Mislav Marohnić

Results 921 comments of Mislav Marohnić

There are two types of `` tags: 1. The ones with inline JavaScript in them. These are untouched by pjax but still get executed (eval'd) after the HTML inside the...

Ah OK I understand. This is another example of how pjax doesn't (and can't) behave identically to static pages. You should construct your external script tags to not depend on...

@brauliobo What does jquery do?

OK, let's clear something up first. Or, you people are welcome to prove me wrong. Consider this HTML: ``` html Hello world! External.something("foo") ``` Here we have multiple external script...

@brauliobo OK, that might be true. Can you point us to somewhere where we can verify this? Perhaps a location in its source code

Ah so it doesn't use `getScript()` exactly. Thanks for pointing that out. OK so what we can do in pjax is try to detect whether `eval` is allowed in the...

No? What happens if you call `eval("1+2")`

Which browser is this happening on? Is your server returning any `x-pjax-*` headers in the server response for pjax requests?

Sorry, I'm not sure what's going wrong here and why do you have duplicate requests. It sounds like this might be a problem with usage of this project, and not...

Good point. (Sorry for late reply.) Though, I'm not sure I understand how your proposed fix works even in theory (nevermind the code).