It depends on whether you're using the Web IDE to load modules, or have them on an SD card.
require("Testing")
In both cases, the .connect() won't load anything extra (unless something in that function allocates a bunch of stuff).
.connect()
@Gordon started
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.
It depends on whether you're using the Web IDE to load modules, or have them on an SD card.
require("Testing")
will load everything into memory.require("Testing")
itself will do nothing.In both cases, the
.connect()
won't load anything extra (unless something in that function allocates a bunch of stuff).