I'm not sure if it matters, but the reason I did it that way was so that the new favicon wouldn't get inserted into the DOM before it had its path set.