What happens when you connect to the device with the Web UI? Does the LED light up?
If you're plugged into the PC then Espruino knows it is connected to a device and has to wait until the device reads the text it's trying to send on bootup (which means it won't run your code immediately). If you're connected to a battery (or even a USB phone charger) then that shouldn't happen.
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.
Hi Andrey,
Your initial suggestion should now work as well.
What happens when you connect to the device with the Web UI? Does the LED light up?
If you're plugged into the PC then Espruino knows it is connected to a device and has to wait until the device reads the text it's trying to send on bootup (which means it won't run your code immediately). If you're connected to a battery (or even a USB phone charger) then that shouldn't happen.