<script> window.initialData = { isLoggedIn: true, email: 'example@example.com', todos: [ ... ] } </script>
Mozilla has it as "worth prototyping" https://mozilla.github.io/standards-positions/#http-early-hi... and their tracker entry is https://bugzilla.mozilla.org/show_bug.cgi?id=1407355
Folk have been using this technique for a decade or more
I even wrote a web server with bundled framework (as an academic exercise) whose whole purpose was to work like this. It was basically made for delivering any given bundles of assets over a WebSocket and had some cool features like the ability to auto-encode, auto-compress, or translate from one file type to another (say, turning a PNG into a JPEG or minifiying JS/CSS) as a simple matter of modifying the configuration.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103