ts-req-after

You can specify actions to run after request is executed, but right before swap is done. Adds response as o.response to options object.

Useful for clearing up DOM, running some analytics (“product was added to basket”), etc.

Examples

Before/After Request #

This example demostrates how you can interfere with request using ts-req-before.

Demo

This will work with delay
This is prevented