Maybe an alternative to this would be keeping the widgets loaded, but hiding them in apps not loading widgets? RAM could be an issue,
How many apps don't load widgets, and why? It might be best to just slow-load() those apps.
I can't think of a good way to determine if an app is going to load widgets though :-(
scanning the 40+ apps I have installed.
It looks like quicklaunch could be improved a bit to not do this every boot, but just check if an app exists before loading it.
Maybe we should add a debug bootloader that logs per-bootfile timings to the console on boot?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
How many apps don't load widgets, and why? It might be best to just slow-
load()
those apps.I can't think of a good way to determine if an app is going to load widgets though :-(
It looks like
quicklaunch
could be improved a bit to not do this every boot, but just check if an app exists before loading it.Maybe we should add a debug bootloader that logs per-bootfile timings to the console on boot?