This entire block, lines 332-350 up to `else`, should go into .then handler where `html` is prepared. Otherwise it will be operating empty `html` since the template is rendered in .then handler (see line 329 above). It will show up once there's a real delay in provider execution.