Blog/src/public/head.ts
Caleb Braaten b33ffa3371 Complete wip: New Application Architecture
Add support for client side routing and updating without loading the AppShell
2025-10-18 16:42:19 -07:00

12 lines
265 B
TypeScript

// Client-side script that runs in <head>
// Example: TypeScript with DOM types
(() => {
const logPageInfo = (): void => {
console.log('Page loaded in <head>');
};
if (document.readyState === 'loading') {
logPageInfo();
}
})();