Add support for client side routing and updating without loading the AppShell
12 lines
265 B
TypeScript
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();
|
|
}
|
|
})();
|