---
title: >-
  Buy Button JS now defers checkout creation until a variant is added to cart -
  Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/buy-button-js-now-defers-checkout-creation-until-a-variant-is-added-to-cart
  md: >-
    https://shopify.dev/changelog/buy-button-js-now-defers-checkout-creation-until-a-variant-is-added-to-cart.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Tools
    handle: tools
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2019-11-19T11:00:52-05:00'
  postedAt: '2019-11-19T00:00:00-05:00'
  updatedAt: '2024-02-02T10:04:55-05:00'
  effectiveAt: '2019-11-19T00:00:00-05:00'
---

November 19, 2019

Tags:

* Tools

# Buy Button JS now defers checkout creation until a variant is added to cart

The Buy Button cart component’s model is no longer initiated to an empty checkout. Instead, the model is null until a variant is added to cart. This is expected to have a positive impact on the performance on your Buy Buttons!

If you have leveraged the cart’s model in any custom code written using Buy Button JS, it is recommended that you verify your Buy Button still functions as expected.

Learn more about these changes by reviewing the [pull request](https://github.com/Shopify/buy-button-js/pull/657) on Github.
