How to activate smoothState.js only on certain links

406 Views Asked by At

I know that there is a way to disable smoothState.js for some links by adding:

blacklist: '.no-smoothState'

But is there a way to disable it for every link and then selectively pick the links you want to activate smoothState.js on?

1

There are 1 best solutions below

0
On BEST ANSWER

I figured it out:

anchors: 'a.smoothState',
forms: 'form.smoothState'

I tried that a few weeks ago, back then it did not work, now it does.