falsandtru / pjax-api

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

Script reloads every time? #56

Closed yangy9593 closed 1 year ago

yangy9593 commented 1 year ago

Hello, in this example, about.js will be executed when about.html is loaded for the first time, and will not be executed again after that. How to make it execute every time? Thank you (from Google Translate)

https://codesandbox.io/s/nostalgic-violet-gc4hhh?file=/index.html

falsandtru commented 1 year ago

Use the reload option.

https://falsandtru.github.io/pjax-api/docs/apis/pjax/config/