News for hackers. Stuff that matters.
Re:Removing HTTP/2 Server Push from Chrome by cyral on Friday August 19, 2022 @01:50PM (#32524075)
If you mean avoiding the dreaded loading spinner when loading a single page app, you can add the JSON data in some script within the HTML. This is what server-side rendering frameworks like Next.JS do. In it's simplest form, just include something like:

<script> window.initialData = { isLoggedIn: true, email: '[email protected]', todos: [ ... ] } </script>

There are no comments on this comment yet.