Ah, that’s a good question — and the answer is, of course, “it depends”.
If it’s detected client-side (or with very minimal processing, eg. a redirect) I don’t see that it would constitute a violation. At least, the case would be hard to make, I would think.