Revert "device ready vs document ready"

This reverts commit 7606dbae14b0fb4fccc3d13030573fecbdec3724.