Minor quibble, but why are you using $.when here. Can't you just do this?

```fragmentsRendered.done(function() {```