Scripts much quicker than automations?

Happy Sunday all!

I am trying to have my front door camera feed popup on my wall tablet upon pressing my doorbell, but I am finding that an automation is just a bit sluggish to carry out this simple task.

If I write a script to turn off the screensaver, show a popup camera, wait 30 seconds and then turn off the screen and I run it, the screen turns on instantly and then within 1-2 seconds the popup appears and the camera stream starts to load.

alias: Camera - Display Front Door
sequence:
  - service: switch.turn_off
    target:
      entity_id: switch.fire_tablet_screensaver
  - service: browser_mod.more_info
    data:
      deviceID: a3fe31e4-b0536667
      entity_id: camera.frigate_front_door
      large: true
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - service: browser_mod.close_popup
    data:
      deviceID: a3fe31e4-b0536667
mode: single

If however I run this as an automation, the screensaver turns off instantly, but then it takes about 6-7 seconds for the popup to appear and the stream to start to load.

alias: Button - Doorbell - Triple
description: ''
trigger:
  - platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: sensor.button_hallway_doorbell_action
      click_type: single
condition: []
action:
  - service: script.camera_display_front_door
mode: single

Im unsure what is causing this peculiar behaviour and have tried also running the individual actions in the automation rather than calling the script but still have the same behaviour.

Does anyone know how I can get the automation to be a bit snapper, or why it runs slower than a script? (Even though the first action of it is instantaneous)

Thanks