2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

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.

v2.0 beta
Open .md
On this page
  1. Types
  2. SmootifyCallback

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[]): void

Types

SmootifyCallback

/** A function queued with `window.Smootify.push`: it runs once Smootify is loaded, with the API. */
export type SmootifyCallback = (smootify: SmootifyApi) => void;

    ↑ ↓ to moveEnter to openEsc to close