GitHub

DaffExternalScriptServiceInterface

import { DaffExternalScriptServiceInterface } from '@daffodil/core/external-script'

interface DaffExternalScriptServiceInterface {
  load(
    name: string
    script: DaffExternalScript
  ): Observable<boolean>
}

() Methods

load
Observable<boolean>

Load a script into the document.

Parameters
Parametername: string
Description

The name of the script.

Parameterscript: DaffExternalScript
Description

The script object containing details like src, async, defer, and custom attributes.