-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with scripts execution order #259
Comments
It's an intentional change. On Mar 1, 2013, at 7:55 AM, Diogo Edegar Mafra notifications@github.com wrote:
|
I was expecting the execution order to be:
Maybe I'm doing something wrong, but how do you solve something like this: I'm setting up the page on the 'pjax:success' event (as we would do using the document.ready), and it depends on a script that is loaded only on that page. But, right now, the pjax:success event is raised before the javascript is loaded. Probably I have to load the code that is executed on 'pjax:success' after the library is loaded. Something like this:
|
There's no way to have blocking scripts without resorting to eval. On Mar 1, 2013, at 8:16 AM, Diogo Edegar Mafra notifications@github.com wrote:
|
OK. I'm closing this issue. Thank you. |
Hi, I have a problem related to the script execution order. It was working in the version 1.4.0, but it's not in the 1.5.0.
In the version 1.4.0, all scripts defined inside the pjax container were executed synchronously, but now, it executes first the inline script and later the loaded scripts(with 'src'). You can see a test here: diogomafra@43206a4
I think it should execute the scripts in order they are defined, right?
The text was updated successfully, but these errors were encountered: