27 lines
976 B
HTML
27 lines
976 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Bootstrap Time Display</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Bootstrap Time</h1>
|
||
|
<div id="bootstrap-time">Loading...</div>
|
||
|
|
||
|
<script src="/lib/client.js" type="module"></script>
|
||
|
<script type="module">
|
||
|
import { bootstrap } from '/lib/client.js';
|
||
|
document.addEventListener('DOMContentLoaded', async () => {
|
||
|
try {
|
||
|
const bootstrapTime = await bootstrap(); // This function should be defined in your JS file
|
||
|
document.getElementById('bootstrap-time').textContent = `Bootstrap Time: ${bootstrapTime} ms`;
|
||
|
} catch (error) {
|
||
|
console.error('Error loading bootstrap time:', error);
|
||
|
document.getElementById('bootstrap-time').textContent = 'Error loading bootstrap time';
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|