Fix resourceloader-induced issues with styles and some other random stuff