evylang / todo

0 stars 0 forks source link

Split JS into smaller files using import maps #41

Closed juliaogris closed 5 months ago

juliaogris commented 6 months ago

Break up frontend code into standalone and digestable junks as precursor to web-components. Use importmaps.

Split into:

Maximise http2 usage (loads of files downloaded simultaneously).

Aim for waterfall network browser dev tools visualisation looking like this:

|--
|-
|--

Rather than this:

|--
   |-
     |--

In a follow-up step we'll implement filenames with content hashing for maximum browser caching.

The strategy has been inspired by DHH's #nobuild push:

juliaogris commented 5 months ago

This is on going work but it's been started: We are using import maps for the playground, and we have factored out: editor.js, and confetti.js

A next big step will happen when rendering docs as part of evy.dev. For that we will need an easily, flexibly embeddable evy editor (eventually) - so that samples are editable / playable.