Mirror of static site repo git.pfy.ch/pfych/static
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import { setColourMode } from './colour-mode';import { noscriptHandler } from './no-script';import { setHeader } from './setup-header';import { svgDiagrams } from './setup-mermaid-diagrams';import { sortableTables, wrapTables } from './setup-tables';import { syncAnimations } from './sync-animations';import { handlePostImages } from './post-images';import { importGoat } from './import-goat';import { handleWebmentions } from './webmentions';import { setupMathjax } from './setup-mathjax';
/** This file blocks rendering and will run before any dom content loads, call heavy functions in a listener! */
setColourMode();
document.addEventListener('DOMContentLoaded', async function () { noscriptHandler(); wrapTables(); setHeader(); sortableTables(); svgDiagrams(); syncAnimations(); handlePostImages(); importGoat(); setupMathjax(); await Promise.all([handleWebmentions()]);});