Skip to content

Instantly share code, notes, and snippets.

@samuelmaddock
Created October 20, 2025 20:41
Show Gist options
  • Select an option

  • Save samuelmaddock/92cc70d537b3003b974fc4ef43c3dc61 to your computer and use it in GitHub Desktop.

Select an option

Save samuelmaddock/92cc70d537b3003b974fc4ef43c3dc61 to your computer and use it in GitHub Desktop.
Download and open in browser
<!doctype html>
<html>
<head>
<style>
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
body {
padding: 1rem;
}
iframe {
border: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<iframe
src="https://chrome-devtools-frontend.appspot.com/serve_file/@79706885d5e7232d7e4e0814ee95044b79e77380/trace_app.html"
></iframe>
<script>
const iframe = document.querySelector('iframe');
setTimeout(() => {
iframe.contentWindow.postMessage(
{
type: 'REHYDRATING_TRACE_FILE',
traceJson: JSON.stringify({
traceEvents: [],
}),
},
'*',
);
}, 1000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment