Add support for checking for resource loading completion