UNPKG

@builder.io/partytown

Version:

Relocate resource intensive third-party scripts off of the main thread and into a web worker.

37 lines (32 loc) 941 B
/** * Forwards Facebool Pixels main window calls to Partytown's worker thread. * * https://developers.facebook.com/docs/facebook-pixel/get-started * * @public */ export declare const facebookPixelForward: PartytownForwardProperty[]; /** * Forwards Freshpaint.io main window calls to Partytown's worker thread. * * https://www.freshpaint.io/ * * @public */ export declare const freshpaintForward: PartytownForwardProperty[]; /** * Forwards Google Tag Manager main window calls to Partytown's worker thread. * * @public */ export declare const googleTagManagerForward: PartytownForwardProperty[]; /** * A foward property to patch on `window`. The foward config property is an string, * representing the call to forward, such as `dataLayer.push` or `fbq`. * * https://partytown.builder.io/forwarding-events * * @public */ declare type PartytownForwardProperty = string; export { }