~/talk

Ship Less JavaScript with Astro

Talkat CityJS London 2023 · 2023-04-21..04-23· [frontend-architecture]
slides:none on file

Astro claims to ship less JavaScript by default and the demo shows pages built at compile time unless explicitly server rendered, using content collections (getCollection) to generate hundreds of blog routes and export const getStaticPaths style generation. The workshop uses Astro 2.1 experimental assets and API routes to implement a products endpoint with client-side purchase POSTs, imports React components with Islands architecture with client:visible directives, and shows image optimization cutting a 3.2 MB source to ~27 KB; the examples run and build as shown.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:17Astro basics and project creation
  3. 10:13Front matter and static builds
  4. 13:05Routing and layouts
  5. 26:30Collections and content management
  6. 49:28Fetching data and API examples
  7. 1:00:11Server-side rendering and hybrid rendering
  8. 1:22:09Using React components in Astro
  9. 1:35:22Image optimization in Astro
  10. 1:46:27Q&A and workshop summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.