Add loadedmanifest handler for duration determination