use domcontentloaded in example