BangleApps/apps/fastload
Simon Sievert 97fa54c2d6
fastload: fix caching
broken since e2ba3ca64 (fastload - Replace E.CRC32 with Storage.hash, 2023-07-24)

Storage.hash() expects a regex (or apparently the name as a string) to match files that should be hashed, but was called with the contents of the file
2023-07-28 09:55:51 +02:00
..
ChangeLog fastload: fix caching 2023-07-28 09:55:51 +02:00
README.md fastload - Check setting.json and force real load on change 2023-07-24 22:30:51 +02:00
boot.js fastload: fix caching 2023-07-28 09:55:51 +02:00
icon.png fastload - Add fastload app 2022-11-28 19:56:00 +01:00
metadata.json fastload: fix caching 2023-07-28 09:55:51 +02:00
settings.js fastload - Check setting.json and force real load on change 2023-07-24 22:30:51 +02:00

README.md

Fastload Utils

EXPERIMENTAL Use this with caution. When you find something misbehaving please check if the problem actually persists when removing this app.

This allows fast loading of all apps with two conditions:

  • Loaded app contains Bangle.loadWidgets. This is needed to prevent problems with apps not expecting widgets to be already loaded.
  • Current app can be removed completely from RAM.

Settings

  • Activate app history and navigate back through recent apps instead of immediately loading the clock face
  • If Quick Launch is installed it can be excluded from app history
  • Allows to redirect all loads usually loading the clock to the launcher instead
  • The "Fastloading..." screen can be switched off
  • Enable checking setting.json and force a complete load on changes

App history

  • Long press of hardware button clears the app history and loads the clock face
  • Installing the 'Fast Reset' app allows doing fastloads directly to the clock face by pressing the hardware button for one second. Useful if there are many apps in the history and the user want to access the clock quickly.

Technical infos

This is still experimental but it uses the same mechanism as .bootcde does. It checks the app to be loaded for widget use and stores the result of that and a hash of the js in a cache.

Creator

halemmerich

Contributors

thyttan