Always redirect to referer
Redirect unless xhr. Extract js to adapt.js
Redirect unless xhr. Extract js to adapt.js
Using native matchMedia