Wait that all resources are loaded and fragments rendered before initializing the xblock
no need for $.when() here..
Merge pull request #3463 from aboudreault/xblock-initialization-issue

XBlocks are something initialized before all resources (url) are loaded