Results 47 comments of BehindTheMath

@MoOx What browserlist settings do you think we should use for Babel?

Promises will make cancelling the XHRs more complicated, since currently, native Promises cannot be canceled.

You can reject a Promise, but you cannot abort the fetch request without [AbortControllers](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort), which is a newer API, and is not supported by IE.

>This "polyfill" doesn't actually close the connection when the request is aborted

You can definitely implement it yourself. Make the request when the user hovers over the link, cache the response, then override `pjax.loadUrl()` to first check if the response is cached....

You need to show some more code if you want help.

As of now we have pretty good coverage, besides for `sideBySide` in `lib/switches.js`. I'm going to leave this open though.

@MoOx What's the effect of triggering the `resize` and `scroll` events? Is it only to notify the user, or does it have an effect on the browser as well?

I agree with @darylteo that we should deprecate triggering `resize` and `scroll`. I also think that we don't need to trigger a new event like `pjax:switch` when using a user-created...