MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.43k stars 124 forks source link

Dynamic Selectors - Not exists at all pages #204

Closed royshoa closed 5 years ago

royshoa commented 5 years ago

I am using the Pjax at the navigation menu and switching some selectors at the page. My issue is that there is a class that exists only at the website homepage and I like Pjax to add it when the user browses to the homepage and remove it when the user browses to another page.

Are there is a way to do it without bypass the Pjax object?

Buliwyfa commented 4 years ago

It will be nice to add some fallbacks selectors like on falsandtru/pjax-api (falsandtrucall the selectors areas) http://falsandtru.github.io/pjax-api/