Wait for page init to initialize classes.