some edits
Detects SPA request