registerLoader method for registering custom component loader functions