document domain before init