Render a Component
Render a component to improve promotional messaging latency on your site. Learn more about rendering promotional messaging component.
The render function for an already created component can be called at any time after the affirm.jsReady()
function.
The render function accepts the CSS selector for the DOM element where you want to display the promotional messaging. Ideally, you can use an id
for a single element as the CSS selector. The render function uses document.querySelector
to locate the element on the page, so if you pass a class, only the first matching element is transformed into the rendered component.
Updated 5 days ago