Cart drawer blank on Dawn theme when adding first item

Weird bug it seems on Dawn theme (latest 8.01) where first time a user adds an item to the cart, the drawer opens but is completely blank. Adding another item or refreshing the page seems to make it display fine. Any ideas how to force an Ajax refresh every time something gets added to the cart?

it sounds like there may be an issue with the Ajax refresh that’s causing the problem. One solution you can try is to force an Ajax refresh every time something is added to the cart.

To do this, you can add a script to your theme that will trigger an Ajax refresh whenever a product is added to the cart. Here’s an example of the script you can use:

$(document).ajaxComplete(function() {
  CartJS.updateCart();
});

You can add this script to the theme.liquid file of your Dawn theme. This should force an Ajax refresh every time a product is added to the cart a

Hi thanks! this doesn’t fire at all it seems… I’ve tried adding console.log and nothing returns