testing doc ready and resize