wait for dom to be ready for social layers