phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.66k stars 116 forks source link

Make all resources available offline #827

Open abose opened 1 year ago

abose commented 1 year ago

We should make all resources offline for phoenix to work properly on desktop and load fast on browsers. The following errors were seen when phoenix is offline:

  1. image
  2. image
  3. image
  4. image

Attached log file: phcode.dev-1672817994176.log

abose commented 1 year ago
abose commented 1 year ago

what's left for full offline support

We only cache files we have already encountered via a browser HTTP request. The full files cache is around 50mb, but phoenix at runtime loads fewer than 10 MB to first boot. So we need to defer the large app files download to later.

Available browser technologies