Back in April, 2017:
APR 28, 2017 | 11:44AM PDT
Hype only builds the DOM once when the document loads, so if you destroy the contents of a scene then Hype will not function correctly because it is expecting those elements to be there. Scene loads only reset properties on those elements.
I originally did it that way in v1.0 as an effort to keep transitions between scenes performant. I’ve been wanting to change this and destroy the DOM for inactive scenes, but I do know it will break a variety of documents and have been hesitant. I might do so for a major release or have some sort of compatibility mode.
My recommendation might be to use Advanced Export to do per-layout exports, and have a redirect or code up front that chooses which one to use.
I hope that helps,
Founder, Tumult Inc.
With regard to the “head” topic, you guessed correctly. I incorrectly assumed that the js file referenced in the Hype div took care of what was specified in the HEAD HTML section of the actual Hype document. Now, this makes sense!!! What a maroooonnnn. I’ll just enqueue those libraries and the css as needed per my plugin. Thanks for clearing that up!!!