made ajax detection an opt-in feature