falsandtru / pjax-api

The advanced PJAX superior to SPA.
https://falsandtru.github.io/pjax-api/
Apache License 2.0
318 stars 28 forks source link

can not load javascript #13

Closed dbarma closed 8 years ago

dbarma commented 8 years ago

Hi, pjax is not loading javascript files. When enabling load: {script: true} the page refreshes by it self. I am using jquery-1.11.3.js

Please guide me

falsandtru commented 8 years ago

Hi, this pjax load external script files only once for each script file path. Inline scripts are run every time. Otherwise, this pjax can load external script files every time by load:{reload:"selector"} setting, but this is not better solution. If you cannot move pages using pjax when setting load:{script:true}, please test your script. If your script cannot load and run multiple times, that is the cause. This is common case.