Web Development

How this site and others are made and found: static pages, search engines, the IndieWeb and maps in the browser.

Topic Created Updated Also in German: Webentwicklung

Reviewed by adrian on

The web is the platform of linked pages and applications that run in the browser. Building for it means deciding how pages are generated and served, how search engines find and read them, and how data such as maps is delivered and drawn in the browser. This topic collects these questions and the tools for them.

Based on

More on this

Covered in

  • A GDPR-Compliant Google Maps Embed An Astro component that loads Google Maps only after consent, stores the decision in localStorage and builds Google and Apple Maps links from coordinates.
  • A GDPR-Compliant YouTube Embed An Astro component that loads YouTube only after a click: show once, agree and remember, or just the link. No cookie, no request to Google before consent.
  • Astro Client Islands under a Strict CSP Why Astro islands fail silently under script-src 'self', how I allowed the two hydration inlines by sha256 hash, and a deploy check for hash drift.
  • Leaflet and Stadia Maps Behind a Strict CSP Two fixes that made the photo world map work in production: the tile host in img-src and a Referrer-Policy of origin on the tiles.
  • Obfuscating Contact Data on a Static Site Base64 in a data attribute and reversed text flipped back by CSS keep the imprint's email address away from harvesters and from copy and paste.
  • Security Headers in Caddy A strict Content Security Policy, HSTS and no-referrer in a Caddy site block, checked with Webbkoll, securityheaders.com and the Mozilla Observatory.

Includes

  • IndieWeb Publishing on your own domain first and connecting personal websites with open standards such as Webmention and Microformats.
  • OpenStreetMap Freely usable world map, mapped by volunteers since 2004. The data is licensed under the Open Database License.
  • Search Engine Optimization Measures that help search engines find, understand and properly display pages. The basis is stable URLs, clear titles and internal links.
  • Static Website A website made of finished HTML files that are built once and then served unchanged. No server code, no database.
  • Vector Tiles Map tiles that contain geometries instead of finished images. The map's appearance is only created in the browser.

Show in the graph view