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

Script reloads every time? #56

Closed yangy9593 closed 11 months ago

yangy9593 commented 11 months 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 11 months ago

Use the reload option.

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