view mrjunejune/src/resume/index.js @ 183:a8976a008a9d

[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 21:19:08 -0800
parents bcc76a156aea
children
line wrap: on
line source

function loadComponent(ele, file_path)
{
  fetch(file_path)
    .then(response => response.text())
    .then(data => ele.innerHTML = data)
}
loadComponent(header, 'header.html');
loadComponent(footer, 'footer.html');