moved processing of page themes to wait for loadRequires to complete