Either variant will do. But as a general rule you need to place explanation sentence ('когда он будет готов') right after the defined word, as the further the definition the more confusing to which...