Is it possible to disable Turbolinks for specific jQuery Ajax calls to prevent the page from refreshing and scrolling?
问题 I have a Rails 5 application and would very much like to use Turbolinks. Within the application there are several PATCH ajax calls that simply update the server with new data, but do not need to worry about updating the state of the page. Whenever these ajax requests return, Turbolinks refreshes the page and the browser scrolls to the top of the screen. This is not desirable behavior; it is much preferred that things just stay put where they are. Disabling Turbolinks eliminates the problem.