Smootify.push()
runs each function once Smootify knows the visitor and the market, before it loads products and cart, so listeners get every event and filters apply from the first request; right away later on. One that throws does not stop the others.
On this page
runs each function once Smootify knows the visitor and the market, before it loads products and cart, so listeners get every event and filters apply from the first request; right away later on. One that throws does not stop the others. New in 2.0.
push(...callbacks: SmootifyCallback[]): voidTypes
SmootifyCallback
/** A function queued with `window.Smootify.push`: it runs once Smootify is loaded, with the API. */
export type SmootifyCallback = (smootify: SmootifyApi) => void;