Skip to content

Instantly share code, notes, and snippets.

@andreypopp
Created November 27, 2022 20:27
Show Gist options
  • Save andreypopp/7a696b03116e4f41223f755c6c8e690f to your computer and use it in GitHub Desktop.
Save andreypopp/7a696b03116e4f41223f755c6c8e690f to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script>
window.ASAPConfig = {"basePath":""};
window.ASAPBootConfig = {"basePath":"","initialPath":"/hello/message","js":"/__static/__main__-524CBTGD.js","css":"/__static/__main__-M2L2B7QS.css"};
</script>
<script type="module" src="/__static/__main__-524CBTGD.js"></script>
<link rel="stylesheet" href="/__static/__main__-M2L2B7QS.css"/>
</head>
<body>
<!--$?--><template id="B:0"></template><div style="position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center">Loading...</div><!--/$-->
</body>
</html>
<!-- NOW SUSPENSE ON SERVER RECIEVED SOME DATA AND PUSHED MORE HTML -->
<div hidden id="S:0">
<div>
<div>message<!-- -->: <!-- -->Hola, World</div>
<a href="/">Back to /</a>
</div>
</div>
<script>function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("B:0","S:0")</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment