I have seen this problem with MathJax and TMH player. Both seem to do things that require the content to be attached. Both work the First time you use LivePreview (probably because of the delay of loading their modules first), but don't work the second time.
I see three solutions.
1: Move the firing of the hook to happen AFTER the content is added
2: add an additional hook
3: Rewrite 3rd party libraries to be able to deal with it. (though for mathjax which does lots of view measurements, that's probably never going to work).