12345678910111213141516 '',// Scroll depth, once per threshold per page. '## Blog',let frame = 0; '',const measure = () => { ...posts.map((p) => `- [${p.data.title}](${url(`/blog/${p.id}`)}):const scrollable = document.documentElement.scrollHeight - wind '',// The last few pixels count as the bottom (browsers stop a fra '## Optional',const depth = scrollable - window.scrollY <= 4 ? 100 : Math.rou '',for (const mark of [25, 50, 75, 100]) { `- [Imprint](${url('/imprint')}) (Spanish: [Aviso legal](${url('/eif (depth >= mark) trackOnce(`scroll-${mark}`, 'scroll_depth' `- [Privacy policy](${url('/privacy')}) (Spanish: [Política de pri} '',}; ];window.addEventListener('scroll', () => { return new Response(lines.join('\n'), { headers: { 'Content-Type': 'cancelAnimationFrame(frame); };frame = requestAnimationFrame(measure);}, { passive: true }); import type { APIRoute } from 'astro'; Past companies Already Four is my fourth software company. These are the three that came before it, and what each one taught me. Company 1 miimo A social network for students 2005 – 2006 Company 2 Tagcrumbs Social bookmarking for places in real life 2008 – 2010 Company 3 Contentful The content platform behind thousands of websites and apps 2010 – 2026 Company 4 Already Four A lab for new apps Now