How to make IoT (ESP8266 & Google Firebase & MIT app inventer) projects faster, with no delay

Please post your complete sketch that exhibits this behaviour

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination