Add configuration option to allow disabling of automatic dom activation