Better leaving of ajax mode if already set from extrnal framework